dev/core#135 Fix first of 2 non numeric issues in CRM_Batch_form_entryTest
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 23 May 2018 21:55:05 +0000 (07:55 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 23 May 2018 21:55:05 +0000 (07:55 +1000)
CRM/Batch/Form/Entry.php

index 0e1a00cd314c47fc2b77c403747635904f41cd79..2a3a128c2ac8b348632fb13aaed2a07005b344c5 100644 (file)
@@ -718,7 +718,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
           }
         }
 
-        $params['actualBatchTotal'] += $value['total_amount'];
+        $params['actualBatchTotal'] += (float) $value['total_amount'];
 
         unset($value['financial_type']);
         unset($value['payment_instrument']);