Browse Source

[producer] Order : correction bug paiement crédit non effectué (credit_functioning non défini au niveau du point de vente)

dev
Guillaume Bourgeois 5 years ago
parent
commit
6f93eb0909
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      producer/controllers/OrderController.php

+ 3
- 3
producer/controllers/OrderController.php View File

$amountRemaining = $order->getAmount(Order::AMOUNT_REMAINING) ; $amountRemaining = $order->getAmount(Order::AMOUNT_REMAINING) ;
if($credit && $pointSale->credit && if($credit && $pointSale->credit &&
( ($pointSale->credit_functioning == Producer::CREDIT_FUNCTIONING_OPTIONAL && $posts['use_credit']) ||
$pointSale->credit_functioning == Producer::CREDIT_FUNCTIONING_MANDATORY ||
($pointSale->credit_functioning == Producer::CREDIT_FUNCTIONING_USER && $userProducer->credit_active)
( ($creditFunctioning == Producer::CREDIT_FUNCTIONING_OPTIONAL && $posts['use_credit']) ||
$creditFunctioning == Producer::CREDIT_FUNCTIONING_MANDATORY ||
($creditFunctioning == Producer::CREDIT_FUNCTIONING_USER && $userProducer->credit_active)
)) { )) {


// à payer // à payer

Loading…
Cancel
Save