FIX - php V8 order liste
This commit is contained in:
parent
0b138167f6
commit
2208d39b39
@ -2319,8 +2319,11 @@ if ($resql) {
|
|||||||
|
|
||||||
$numlines = count($generic_commande->lines); // Loop on each line of order
|
$numlines = count($generic_commande->lines); // Loop on each line of order
|
||||||
for ($lig = 0; $lig < $numlines; $lig++) {
|
for ($lig = 0; $lig < $numlines; $lig++) {
|
||||||
$reliquat = $generic_commande->lines[$lig]->qty - $generic_commande->expeditions[$generic_commande->lines[$lig]->id];
|
if (isset($generic_commande->expeditions[$generic_commande->lines[$lig]->id])) {
|
||||||
|
$reliquat = $generic_commande->lines[$lig]->qty - $generic_commande->expeditions[$generic_commande->lines[$lig]->id];
|
||||||
|
} else {
|
||||||
|
$reliquat = $generic_commande->lines[$lig]->qty;
|
||||||
|
}
|
||||||
if ($generic_commande->lines[$lig]->product_type == 0 && $generic_commande->lines[$lig]->fk_product > 0) { // If line is a product and not a service
|
if ($generic_commande->lines[$lig]->product_type == 0 && $generic_commande->lines[$lig]->fk_product > 0) { // If line is a product and not a service
|
||||||
$nbprod++; // order contains real products
|
$nbprod++; // order contains real products
|
||||||
$generic_product->id = $generic_commande->lines[$lig]->fk_product;
|
$generic_product->id = $generic_commande->lines[$lig]->fk_product;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user