----------------------------------------
* CRM-21005: "Record Payment" dialogue lacks required field and is clunky
https://issues.civicrm.org/jira/browse/CRM-21005
if ($this->_refund) {
$defaults['total_amount'] = abs($this->_refund);
}
+ elseif ($this->_owed) {
+ $defaults['total_amount'] = number_format($this->_owed, 2);
+ }
// Set $newCredit variable in template to control whether link to credit card mode is included
$this->assign('newCredit', CRM_Core_Config::isEnabledBackOfficeCreditCardPayments());