$payments = array();
if (!empty($overduePayments)) {
foreach ($overduePayments as $id => $payment) {
- $key = ts("$%1 - due on %2 (overdue)", array(1 => CRM_Utils_Array::value('scheduled_amount', $payment),
+ $key = ts("%1 - due on %2 (overdue)", array(
+ 1 => CRM_Utils_Money::format(CRM_Utils_Array::value('scheduled_amount', $payment)),
2 => CRM_Utils_Array::value('scheduled_date', $payment),
));
$payments[$key] = CRM_Utils_Array::value('id', $payment);
}
if (!empty($nextPayment)) {
- $key = ts("$%1 - due on %2", array(1 => CRM_Utils_Array::value('scheduled_amount', $nextPayment),
+ $key = ts("%1 - due on %2", array(
+ 1 => CRM_Utils_Money::format(CRM_Utils_Array::value('scheduled_amount', $nextPayment)),
2 => CRM_Utils_Array::value('scheduled_date', $nextPayment),
));
$payments[$key] = CRM_Utils_Array::value('id', $nextPayment);