Bladeren bron

Order::initInvoicePrices() : gestion de la quantity

refactoring
Guillaume Bourgeois 2 jaren geleden
bovenliggende
commit
c5dd101176
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. +2
    -1
      common/models/Order.php

+ 2
- 1
common/models/Order.php Bestand weergeven

@@ -981,7 +981,8 @@ class Order extends ActiveRecordCommon
$productOrder->invoice_price = $productOrder->product->getPrice([
'user' => isset($params['user']) ? $params['user'] : null,
'user_producer' => isset($params['user_producer']) ? $params['user_producer'] : null,
'point_sale' => isset($params['point_sale']) ? $params['point_sale'] : null
'point_sale' => isset($params['point_sale']) ? $params['point_sale'] : null,
'quantity' => $productOrder->quantity
]);
$productOrder->save();
}

Laden…
Annuleren
Opslaan