|
|
|
|
|
|
|
|
$productOrder->invoice_price = $productOrder->product->getPrice([ |
|
|
$productOrder->invoice_price = $productOrder->product->getPrice([ |
|
|
'user' => isset($params['user']) ? $params['user'] : null, |
|
|
'user' => isset($params['user']) ? $params['user'] : null, |
|
|
'user_producer' => isset($params['user_producer']) ? $params['user_producer'] : 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(); |
|
|
$productOrder->save(); |
|
|
} |
|
|
} |