|
|
@@ -543,10 +543,10 @@ class OrderRepository extends AbstractRepository |
|
|
|
$titleLabel = ''; |
|
|
|
|
|
|
|
if(!$amountPaid) { |
|
|
|
if($isOrderPaid) { |
|
|
|
if($isOrderPaid && $amountTotal != 0) { |
|
|
|
$label = 'Facture payée'; |
|
|
|
} |
|
|
|
elseif($this->isCreditAutoPayment($order)) { |
|
|
|
elseif($this->isCreditAutoPayment($order) && $amountTotal != 0) { |
|
|
|
if($order->subscription && $order->subscription->auto_payment == 0) { |
|
|
|
$label = 'Crédit désactivé'; |
|
|
|
} |
|
|
@@ -554,6 +554,9 @@ class OrderRepository extends AbstractRepository |
|
|
|
$label = 'Crédit non débité'; |
|
|
|
} |
|
|
|
} |
|
|
|
elseif($amountTotal == 0) { |
|
|
|
$label = 'Gratuit'; |
|
|
|
} |
|
|
|
else { |
|
|
|
$label = 'Non réglé'; |
|
|
|
} |
|
|
@@ -578,7 +581,7 @@ class OrderRepository extends AbstractRepository |
|
|
|
$classLabel = 'warning'; |
|
|
|
$titleLabel = 'Paiement en surplus'; |
|
|
|
} |
|
|
|
elseif($isOrderPaid) { |
|
|
|
elseif(($isOrderPaid && $amountTotal != 0) || $amountTotal == 0) { |
|
|
|
$classLabel = 'success'; |
|
|
|
} |
|
|
|
elseif($orderPaymentStatus == Order::PAYMENT_UNPAID) { |