From 2bbf19e2f3c3c5244182318de66e5a9891390a1a Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Wed, 16 Aug 2023 13:45:19 +0200 Subject: [PATCH] Update product.php --- functions/product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/product.php b/functions/product.php index 18bba350..928774b2 100644 --- a/functions/product.php +++ b/functions/product.php @@ -214,7 +214,7 @@ function doliaddtocart($product, $mstock, $quantity, $price, $timestart = null, if (isset($thirdparty->tva_assuj) && empty($thirdparty->tva_assuj)) { if (isset($product->tva_tx)) $product->tva_tx = 0; } - if ( doliCheckModules('adherent') && $product->id == doliconst("ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS", dolidelay('constante'))) { + if ( doliCheckModules('adherent') && $product->id == doliconst("ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS", dolidelay('constante')) && !empty(doliconst("FACTURE_TVAOPTION", dolidelay('constante'))) && !empty(doliconst("ADHERENT_VAT_FOR_SUBSCRIPTIONS", dolidelay('constante')))) { $price_base_type = 'TTC'; } else { $price_base_type = 'HT';