From: Pradeep Nayak Date: Tue, 18 Jul 2017 00:01:59 +0000 (+0530) Subject: CRM-20899, formatted number upto 2 decimal place X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7583896b4adc983156a493e49bfdb8faebc4e7a4;p=civicrm-core.git CRM-20899, formatted number upto 2 decimal place --- diff --git a/CRM/Contribute/Form/AdditionalPayment.php b/CRM/Contribute/Form/AdditionalPayment.php index 230c7e8600..8d9ddf1779 100644 --- a/CRM/Contribute/Form/AdditionalPayment.php +++ b/CRM/Contribute/Form/AdditionalPayment.php @@ -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);