Update getSupplierPrices.php

This commit is contained in:
Laurent Destailleur 2022-01-23 19:40:23 +01:00 committed by GitHub
parent 30ad0e7e11
commit dee020f286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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