CRM-20899, formatted number upto 2 decimal place
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 18 Jul 2017 00:01:59 +0000 (05:31 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Wed, 13 Sep 2017 10:16:03 +0000 (15:46 +0530)
CRM/Contribute/Form/AdditionalPayment.php

index 230c7e8600d3ee965a22c4ff39690b5a2311667f..8d9ddf1779a3b02c19c0ab1a0345de69ae077a6d 100644 (file)
@@ -184,7 +184,7 @@ class CRM_Contribute_Form_AdditionalPayment extends CRM_Contribute_Form_Abstract
     }
 
     if ($this->_refund) {
-      $defaults['total_amount'] = abs($this->_refund);
+      $defaults['total_amount'] = CRM_Utils_Money::format(abs($this->_refund), NULL, NULL, TRUE);
     }
     elseif ($this->_owed) {
       $defaults['total_amount'] = number_format($this->_owed, 2);