CRM-19800, cleaned money for total amount
authorPradeep Nayak <pradpnayak@gmail.com>
Sun, 25 Dec 2016 17:18:42 +0000 (22:48 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 2 Jan 2017 08:32:09 +0000 (14:02 +0530)
----------------------------------------
* CRM-19800: Incorrect Amount recorded in civicrm_financial_trxn table
  https://issues.civicrm.org/jira/browse/CRM-19800

CRM/Event/Form/Participant.php

index 38b453fa7e729e83bfda7031ca7ec5a6edc4675d..e98716c8c599833cef98b89e34ba3be0b9d500c5 100644 (file)
@@ -945,6 +945,9 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
     }
 
     $config = CRM_Core_Config::singleton();
+    if (isset($params['total_amount'])) {
+      $params['total_amount'] = CRM_Utils_Rule::cleanMoney($params['total_amount']);
+    }
     if ($this->_isPaidEvent) {
 
       $contributionParams = array();