Sfoglia il codice sorgente

Autorisation du passage du crédit en négatif lors des commandes des utilisateurs

dev
parent
commit
0e6eff148e
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. +0
    -4
      producer/controllers/OrderController.php

+ 0
- 4
producer/controllers/OrderController.php Vedi File

@@ -318,10 +318,6 @@ class OrderController extends ProducerBaseController
$amountRemaining = $order->getAmount(Order::AMOUNT_REMAINING) ;
$credit = Yii::$app->user->identity->getCredit($distribution->id_producer);

if ($amountRemaining > $credit) {
$amountRemaining = $credit;
}

if ($amountRemaining > 0) {
$order->saveCreditHistory(
CreditHistory::TYPE_PAYMENT,

Loading…
Annulla
Salva