Fix label of trxn_date field and also fix post processing of trxn_date
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 30 Mar 2019 02:42:30 +0000 (13:42 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 30 Mar 2019 02:42:30 +0000 (13:42 +1100)
CRM/Contribute/Form/Task/Status.php

index 94bc70f1d805df8fc00f974947627f2315ebb30c..c3f4e9d9e63165f87dc065991d22bd9c86c9cb3a 100644 (file)
@@ -140,9 +140,7 @@ AND    co.id IN ( $contribIDs )";
       $this->addRule("fee_amount_{$row['contribution_id']}", ts('Please enter a valid amount.'), 'money');
       $defaults["fee_amount_{$row['contribution_id']}"] = 0.0;
 
-      $row['trxn_date'] = $this->add('datepicker', "trxn_date_{$row['contribution_id']}", [], FALSE,
-        ts('Receipt Date'), array('time' => FALSE)
-      );
+      $row['trxn_date'] = $this->add('datepicker', "trxn_date_{$row['contribution_id']}", ts('Transaction Date'), [], FALSE, ['time' => FALSE]);
       $defaults["trxn_date_{$row['contribution_id']}"] = $now;
 
       $this->add("text", "check_number_{$row['contribution_id']}", ts('Check Number'));
@@ -294,7 +292,7 @@ AND    co.id IN ( $contribIDs )";
       else {
         $input['trxn_id'] = $contribution->invoice_id;
       }
-      $input['trxn_date'] = CRM_Utils_Date::processDate($params["trxn_date_{$row['contribution_id']}"], date('H:i:s'));
+      $input['trxn_date'] = $params["trxn_date_{$row['contribution_id']}"] . ' ' .  date('H:i:s');
 
       // @todo calling baseIPN like this is a pattern in it's last gasps. Call contribute.completetransaction api.
       $baseIPN->completeTransaction($input, $ids, $objects, $transaction, FALSE);