From f0ee373784856020ccedca3148d2cae38a58ba1b Mon Sep 17 00:00:00 2001 From: IC-faycal Date: Mon, 27 Mar 2023 16:24:44 +0200 Subject: [PATCH] FIX access const --- htdocs/fourn/ajax/getSupplierPrices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/ajax/getSupplierPrices.php b/htdocs/fourn/ajax/getSupplierPrices.php index 28d42c3e3a0..c08ed49dd83 100644 --- a/htdocs/fourn/ajax/getSupplierPrices.php +++ b/htdocs/fourn/ajax/getSupplierPrices.php @@ -67,7 +67,7 @@ if ($idprod > 0) { $productSupplierArray = $producttmp->list_product_fournisseur_price($idprod, $sorttouse); // We list all price per supplier, and then firstly with the lower quantity. So we can choose first one with enough quantity into list. if (is_array($productSupplierArray)) { foreach ($productSupplierArray as $productSupplier) { - if ($conf->global->DISABLE_BAD_REPUTATION_PRODUCT_PRICE && $productSupplier->supplier_reputation == "DONOTORDER") + if (getDolGlobalInt("DISABLE_BAD_REPUTATION_PRODUCT_PRICE") && $productSupplier->supplier_reputation == "DONOTORDER") continue; $price = $productSupplier->fourn_price * (1 - $productSupplier->fourn_remise_percent / 100);