瀏覽代碼

OrderShopTransformer : correctif meanPayment

packProduct
Guillaume 2 年之前
父節點
當前提交
646fe371a8
共有 1 個檔案被更改,包括 6 行新增5 行删除
  1. +6
    -5
      Transformer/Order/OrderShopTransformer.php

+ 6
- 5
Transformer/Order/OrderShopTransformer.php 查看文件

@@ -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(),

Loading…
取消
儲存