Parcourir la source

OrderShopTransformer : correctif meanPayment

packProduct
Guillaume il y a 2 ans
Parent
révision
646fe371a8
1 fichiers modifiés avec 6 ajouts et 5 suppressions
  1. +6
    -5
      Transformer/Order/OrderShopTransformer.php

+ 6
- 5
Transformer/Order/OrderShopTransformer.php Voir le fichier

@@ -112,11 +112,12 @@ class OrderShopTransformer
'orderReference' => $order->getReference(),
'comment' => $orderPayment->getComment(),
'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'),
'paidAt' => $orderPayment->getPaidAt()->format('Y-m-d'),
'amount' => $orderPayment->getAmount(),

Chargement…
Annuler
Enregistrer