mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
fix $fk_product instead $this->fk_product
$fk_product not present on $commande object
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user