Fix php sniffer

This commit is contained in:
Florian Henry 2014-02-23 16:29:16 +01:00
parent 46ae5d6e9c
commit 720746b1b2
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)