From e8bb5d5cc0f3f5f5d45ab5ccdb90f5c02586281e Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Sun, 29 Jun 2014 17:43:22 +0200 Subject: [PATCH] Syntax --- htdocs/commande/fiche.php | 2 +- htdocs/compta/facture.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index ed8084d18dc4c..8f6df3135066f 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -590,7 +590,7 @@ $prodcustprice = new Productcustomerprice($db); - $filter = array('t.fk_product' => $prod->id,'t.fk_soc' => $object->client->id); + $filter = array('t.fk_product' => $prod->id,'t.fk_soc' => $object->thirdparty->id); $result = $prodcustprice->fetch_all('', '', 0, 0, $filter); if ($result >= 0) { diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index d81ee394fbf26..26c777f788dd7 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1156,7 +1156,7 @@ $prodcustprice = new Productcustomerprice($db); - $filter = array('t.fk_product' => $prod->id,'t.fk_soc' => $object->client->id); + $filter = array('t.fk_product' => $prod->id,'t.fk_soc' => $object->thirdparty->id); $result = $prodcustprice->fetch_all('', '', 0, 0, $filter); if ($result >= 0) {