Skip to content

Commit

Permalink
Update product.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Aug 16, 2023
1 parent e077027 commit 2bbf19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 2bbf19e

Please sign in to comment.