Skip to content

Commit

Permalink
Ref #316: fix ajax call for membership list load
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann-BUTSCHER-EIRL committed Mar 30, 2023
1 parent 86cf46d commit dcc53a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Controller/Ajax/PeopleAjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ public function getMembershipsListAction(People $people)
'type_label' => $membership->getType()->getLabel(),
'type_description' => $membership->getType()->getDescription(),
'price' => $membership->getType()->getDefaultAmount(),
'date_start' => $membership->getDateStart()->format('d/m/Y'),
'date_end' => $membership->getDateEnd()->format('d/m/Y'),
'date_start' => $membership->getDateStart()?->format('d/m/Y'),
'date_end' => $membership->getDateEnd()?->format('d/m/Y'),
'payment' => [
'amount' => $payment->getAmount(),
'mean' => $payment->getType()->getLabel(),
'date_received' => $payment->getDateReceived()->format('d/m/Y'),
'date_cashed' => $payment->getDateCashed()->format('d/m/Y'),
'date_received' => $payment->getDateReceived()?->format('d/m/Y'),
'date_cashed' => $payment->getDateCashed()?->format('d/m/Y'),
'payer' => [
'id' => $payment->getPayer()->getId(),
'denomination' => $payment->getPayer()->getDenomination()->getLabel(),
Expand Down

0 comments on commit dcc53a8

Please sign in to comment.