Browse Source

FIX access const

IC-faycal 2 years ago
parent
commit
f0ee373784
1 changed files with 1 additions and 1 deletions
  1. 1 1
      htdocs/fourn/ajax/getSupplierPrices.php

+ 1 - 1
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);