Skip to content

Commit

Permalink
CIWEMB-439: Respect civicrm default data format when showing future p…
Browse files Browse the repository at this point in the history
…ayment schedule
  • Loading branch information
omarabuhussein committed Aug 2, 2023
1 parent cb1010c commit 211c194
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ private function modifyPageElements() {
private function getFuturePaymentSchemeScheduleIfExist($recurId) {
try {
$paymentPlanScheduleGenerator = new CRM_MembershipExtras_Service_PaymentScheme_PaymentPlanScheduleGenerator($recurId);
return $paymentPlanScheduleGenerator->generateSchedule();
$paymentsSchedule = $paymentPlanScheduleGenerator->generateSchedule();
array_walk($paymentsSchedule['instalments'], function (&$value) {
$value['charge_date'] = CRM_Utils_Date::customFormat($value['charge_date']);
});

return $paymentsSchedule;
}
catch (CRM_Extension_Exception $e) {
return NULL;
Expand Down

0 comments on commit 211c194

Please sign in to comment.