fix $fk_product instead $this->fk_product

$fk_product not present on $commande object
This commit is contained in:
BENKE Charlene
2022-06-20 16:07:22 +02:00
committed by GitHub
parent 5ef2f1c69f
commit 710e556845

View File

@@ -2264,8 +2264,8 @@ class Commande extends CommonOrder
}
$sql .= ' ed.fk_origin_line = cd.rowid';
$sql .= ' AND cd.fk_commande = '.((int) $this->id);
if ($this->fk_product > 0) {
$sql .= ' AND cd.fk_product = '.((int) $this->fk_product);
if ($fk_product > 0) {
$sql .= ' AND cd.fk_product = '.((int) $fk_product);
}
if ($filtre_statut >= 0) {
$sql .= ' AND e.fk_statut >= '.((int) $filtre_statut);