diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index 7a4ec48f04b..0ed379610fa 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -729,14 +729,14 @@ else if (($action == 'addline' || $action == 'addline_predef') && $user->rights- elseif (! empty ( $conf->global->PRODUIT_CUSTOMER_PRICES )) { require_once DOL_DOCUMENT_ROOT . '/product/class/productcustomerprice.class.php'; - $prodcustprice = new Productcustomerprice ( $db ); + $prodcustprice = new Productcustomerprice( $db ); $filter = array ( 't.fk_product' => $prod->id, 't.fk_soc'=> $object->client->id ); - $result = $prodcustprice->fetch_all ( '', '', 0,0, $filter ); + $result = $prodcustprice->fetch_all( '', '', 0,0, $filter ); if ($result) { if (count($prodcustprice->lines)>0) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 05bc800468e..6e2c337984f 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -671,14 +671,14 @@ else if ($action == 'addline' && $user->rights->commande->creer) elseif (! empty ( $conf->global->PRODUIT_CUSTOMER_PRICES )) { require_once DOL_DOCUMENT_ROOT . '/product/class/productcustomerprice.class.php'; - $prodcustprice = new Productcustomerprice ( $db ); + $prodcustprice = new Productcustomerprice( $db ); $filter = array ( 't.fk_product' => $prod->id, 't.fk_soc'=> $object->client->id ); - $result = $prodcustprice->fetch_all ( '', '', 0,0, $filter ); + $result = $prodcustprice->fetch_all( '', '', 0,0, $filter ); if ($result) { if (count($prodcustprice->lines)>0) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index cf42be68c0c..0b18cb6f7cf 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1238,14 +1238,14 @@ else if (($action == 'addline' || $action == 'addline_predef') && $user->rights- elseif (! empty ( $conf->global->PRODUIT_CUSTOMER_PRICES )) { require_once DOL_DOCUMENT_ROOT . '/product/class/productcustomerprice.class.php'; - $prodcustprice = new Productcustomerprice ( $db ); + $prodcustprice = new Productcustomerprice( $db ); $filter = array ( 't.fk_product' => $prod->id, 't.fk_soc'=> $object->client->id ); - $result = $prodcustprice->fetch_all ( '', '', 0,0, $filter ); + $result = $prodcustprice->fetch_all( '', '', 0,0, $filter ); if ($result) { if (count($prodcustprice->lines)>0)