|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
foreach ($order->productOrder as $productOrder) { |
|
|
foreach ($order->productOrder as $productOrder) { |
|
|
$invoicePrice = $productManager->getPrice($productOrder->product, [ |
|
|
$invoicePrice = $productManager->getPrice($productOrder->product, [ |
|
|
'user' => $order->user ?: null, |
|
|
|
|
|
|
|
|
'user' => $orderManager->getUserForInvoicing($order), |
|
|
'point_sale' => $order->pointSale, |
|
|
'point_sale' => $order->pointSale, |
|
|
'user_producer' => $userProducer, |
|
|
'user_producer' => $userProducer, |
|
|
'quantity' => $productOrder->quantity |
|
|
'quantity' => $productOrder->quantity |