bugfix
This commit is contained in:
parent
27c019bece
commit
949df6831e
@ -561,7 +561,6 @@ class Expedition
|
|||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$ligne = new ExpeditionLigne();
|
$ligne = new ExpeditionLigne();
|
||||||
|
|
||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
|
|
||||||
$ligne->product_id = $obj->fk_product;
|
$ligne->product_id = $obj->fk_product;
|
||||||
@ -574,10 +573,8 @@ class Expedition
|
|||||||
}
|
}
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->lignes;
|
return $this->lignes;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -172,9 +172,9 @@ class Livraison
|
|||||||
function create_line($transaction, $commande_ligne_id, $qty)
|
function create_line($transaction, $commande_ligne_id, $qty)
|
||||||
{
|
{
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
$idprod = 0;
|
$idprod = 0;
|
||||||
$j = 0;
|
$j = 0;
|
||||||
|
|
||||||
while (($j < sizeof($this->commande->lignes)) && idprod == 0)
|
while (($j < sizeof($this->commande->lignes)) && idprod == 0)
|
||||||
{
|
{
|
||||||
if ($this->commande->lignes[$j]->id == $commande_ligne_id)
|
if ($this->commande->lignes[$j]->id == $commande_ligne_id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user