Explorar el Código

Order::initInvoicePrices() : gestion de la quantity

refactoring
Guillaume Bourgeois hace 2 años
padre
commit
c5dd101176
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      common/models/Order.php

+ 2
- 1
common/models/Order.php Ver fichero

@@ -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();
}

Cargando…
Cancelar
Guardar