Browse Source

[Backend] Tiller : correctif mean payment

refactoring
Guillaume 2 years ago
parent
commit
dc4d6d5a41
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      backend/controllers/DistributionController.php

+ 4
- 4
backend/controllers/DistributionController.php View File

} }


$typePaymentTiller = ''; $typePaymentTiller = '';
if ($order->mean_payment == MeanPayment::MONEY
if ($order->mean_payment == MeanPayment::MONEY) {
$typePaymentTiller = 'CASH';
}
if ($order->mean_payment == MeanPayment::CREDIT_CARD
|| $order->mean_payment == MeanPayment::CREDIT || $order->mean_payment == MeanPayment::CREDIT
|| $order->mean_payment == MeanPayment::TRANSFER || $order->mean_payment == MeanPayment::TRANSFER
|| $order->mean_payment == MeanPayment::OTHER) { || $order->mean_payment == MeanPayment::OTHER) {
$typePaymentTiller = 'CASH';
}
if ($order->mean_payment == MeanPayment::CREDIT_CARD) {
$typePaymentTiller = 'CARD'; $typePaymentTiller = 'CARD';
} }
if ($order->mean_payment == MeanPayment::CHEQUE) { if ($order->mean_payment == MeanPayment::CHEQUE) {

Loading…
Cancel
Save