Browse Source

OrderShopTransformer : correctif meanPayment

packProduct
Guillaume 2 years ago
parent
commit
646fe371a8
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      Transformer/Order/OrderShopTransformer.php

+ 6
- 5
Transformer/Order/OrderShopTransformer.php View File

'orderReference' => $order->getReference(), 'orderReference' => $order->getReference(),
'comment' => $orderPayment->getComment(), 'comment' => $orderPayment->getComment(),
'meanPayment' => $orderPayment->getMeanPayment(), 'meanPayment' => $orderPayment->getMeanPayment(),
'meanPaymentText' => $this->translatorAdmin->transChoice(
'OrderPayment',
'meanPayment',
$orderPayment->getMeanPayment()
),
'meanPaymentText' => $orderPayment->getMeanPayment() ?
$this->translatorAdmin->transChoice(
'OrderPayment',
'meanPayment',
$orderPayment->getMeanPayment()
) : '',
'paidAtText' => $orderPayment->getPaidAt()->format('d/m/Y'), 'paidAtText' => $orderPayment->getPaidAt()->format('d/m/Y'),
'paidAt' => $orderPayment->getPaidAt()->format('Y-m-d'), 'paidAt' => $orderPayment->getPaidAt()->format('Y-m-d'),
'amount' => $orderPayment->getAmount(), 'amount' => $orderPayment->getAmount(),

Loading…
Cancel
Save