Kaynağa Gözat

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

refactoring
Guillaume Bourgeois 5 yıl önce
ebeveyn
işleme
6256b68c9d
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      producer/controllers/OrderController.php

+ 3
- 3
producer/controllers/OrderController.php Dosyayı Görüntüle

@@ -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

Yükleniyor…
İptal
Kaydet