From dee020f2866223be7a7516ac96460782d4f234cf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 23 Jan 2022 19:40:23 +0100 Subject: [PATCH] Update getSupplierPrices.php --- htdocs/fourn/ajax/getSupplierPrices.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/fourn/ajax/getSupplierPrices.php b/htdocs/fourn/ajax/getSupplierPrices.php index 211734f1129..4d47f6a477f 100644 --- a/htdocs/fourn/ajax/getSupplierPrices.php +++ b/htdocs/fourn/ajax/getSupplierPrices.php @@ -109,8 +109,7 @@ if ($idprod > 0) { // Add price for pmp $price=$producttmp->pmp; - if (empty($price)) - { + if (empty($price) && !empty($conf->global->PRODUCT_USE_SUB_COST_PRICES_IF_COST_PRICE_EMPTY)) { // get pmp for subproducts if any $producttmp->get_sousproduits_arbo(); $prods_arbo=$producttmp->get_arbo_each_prod();