|
|
|
|
|
|
|
|
.payment-detail-remaining-surplus { |
|
|
.payment-detail-remaining-surplus { |
|
|
font-size: 10px; |
|
|
font-size: 10px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.td-order-amount.is-order-paid { |
|
|
|
|
|
background-color: #f1f1f1; |
|
|
|
|
|
} |
|
|
', |
|
|
', |
|
|
'methods' => [ |
|
|
'methods' => [ |
|
|
'SetHeader' => ['Commandes du ' . date('d/m/Y', strtotime($distribution->date))], |
|
|
'SetHeader' => ['Commandes du ' . date('d/m/Y', strtotime($distribution->date))], |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function columnOrderAmount(Order $order): string |
|
|
public function columnOrderAmount(Order $order): string |
|
|
{ |
|
|
{ |
|
|
$html = '<td class="td-order-amount"><strong>'.number_format($order->amount_with_tax, 2) . ' €</strong>'; |
|
|
|
|
|
|
|
|
$isOrderPaid = $this->orderRepository->isOrderPaid($order); |
|
|
|
|
|
|
|
|
|
|
|
$html = '<td class="td-order-amount'.(($isOrderPaid) ? ' is-order-paid' : '').'"><strong>'.number_format($order->amount_with_tax, 2) . ' €</strong>'; |
|
|
|
|
|
|
|
|
$paymentLabelPaid = $this->orderRepository->getPaymentLabelPaid($order); |
|
|
$paymentLabelPaid = $this->orderRepository->getPaymentLabelPaid($order); |
|
|
if($paymentLabelPaid && strlen($paymentLabelPaid)) { |
|
|
if($paymentLabelPaid && strlen($paymentLabelPaid)) { |