Ver código fonte

[producer] Correction bug crédit : problème avec l'option qui check par défaut l'utilisation du crédit

dev
Guillaume Bourgeois 5 anos atrás
pai
commit
6256b68c9d
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      producer/controllers/OrderController.php

+ 3
- 3
producer/controllers/OrderController.php Ver arquivo

@@ -344,9 +344,9 @@ class OrderController extends ProducerBaseController
$amountRemaining = $order->getAmount(Order::AMOUNT_REMAINING) ;
if($credit && $pointSale->credit &&
( $posts['use_credit'] ||
$pointSale->credit_functioning == Producer::CREDIT_FUNCTIONING_MANDATORY ||
($pointSale->credit_functioning == Producer::CREDIT_FUNCTIONING_USER && $userProducer->credit_active)
( ($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)
)) {

// à payer

Carregando…
Cancelar
Salvar