projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a96624f
)
dev/core#135 Fix remaining non well formed numeric number problems in CRM_Batch_Form_...
author
Seamus Lee
<seamuslee001@gmail.com>
Thu, 24 May 2018 00:05:59 +0000
(10:05 +1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Thu, 24 May 2018 00:05:59 +0000
(10:05 +1000)
CRM/Batch/Form/Entry.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Batch/Form/Entry.php
b/CRM/Batch/Form/Entry.php
index 2a3a128c2ac8b348632fb13aaed2a07005b344c5..2916344afff8e1525ae9049505f8c0a5ee3291dd 100644
(file)
--- a/
CRM/Batch/Form/Entry.php
+++ b/
CRM/Batch/Form/Entry.php
@@
-717,8
+717,11
@@
class CRM_Batch_Form_Entry extends CRM_Core_Form {
$value['soft_credit'][$key]['soft_credit_type_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_ContributionSoft', 'soft_credit_type_id', 'Gift');
}
}
+ if (!empty($value['total_amount'])) {
+ $value['total_amount'] = (float) $value['total_amount'];
+ }
- $params['actualBatchTotal'] +=
(float)
$value['total_amount'];
+ $params['actualBatchTotal'] += $value['total_amount'];
unset($value['financial_type']);
unset($value['payment_instrument']);