Selaa lähdekoodia

Merge tag 'hotfix_659' into dev

hotfix_659
refactoring
Guillaume Bourgeois 1 vuosi sitten
vanhempi
commit
ea05e1e870
1 muutettua tiedostoa jossa 10 lisäystä ja 8 poistoa
  1. +10
    -8
      backend/controllers/DistributionController.php

+ 10
- 8
backend/controllers/DistributionController.php Näytä tiedosto

@@ -482,15 +482,17 @@ class DistributionController extends BackendController

$quantity = 0;
$invoicePrice = null;
foreach ($order->productOrder as $productOrder) {
if ($productOrder->id_product == $product['id']) {
if ($productOrder->invoice_price) {
$invoicePrice = number_format($productOrder->invoice_price, 2);
} else {
$invoicePrice = number_format($productOrder->price, 3);
}

$quantity = $productOrder->quantity;
if(isset($order->productOrder)) {
foreach ($order->productOrder as $productOrder) {
if ($productOrder->id_product == $product['id']) {
if ($productOrder->invoice_price) {
$invoicePrice = number_format($productOrder->invoice_price, 2);
} else {
$invoicePrice = number_format($productOrder->price, 3);
}
$quantity = $productOrder->quantity;
}
}
}


Loading…
Peruuta
Tallenna