Skip to main content

Ecart de prix des réductions

More
3 years 11 months ago #345717 by Minie
Bonjour,

j'ai un souci de calcul des réductions par valeur fixe, le prix réduit n'est pas égal au prix initial moins la valeur fixe, voici le résultat de la variable price dans la vue price_listing pour un tarif initial de 61.28 HT et une réduction de 11.31
Code:
object(stdClass)#1332 (16) { ["price_id"]=> string(3) "269" ["price_currency_id"]=> string(1) "1" ["price_product_id"]=> string(3) "271" ["price_value"]=> float(51.86) ["price_min_quantity"]=> string(1) "0" ["price_access"]=> string(3) "all" ["price_users"]=> string(0) "" ["price_site_id"]=> string(0) "" ["price_start_date"]=> string(1) "0" ["price_end_date"]=> string(1) "0" ["price_value_with_tax"]=> float(62.23) ["taxes_added"]=> bool(true) ["taxes"]=> array(1) { ["0000_00000006"]=> object(stdClass)#1429 (20) { ["taxation_id"]=> string(1) "6" ["zone_namekey"]=> array(1) { [0]=> string(17) "country_France_73" } ["category_namekey"]=> string(24) "tax_1654959073_327727726" ["tax_namekey"]=> string(2) "20" ["taxation_published"]=> string(1) "1" ["taxation_type"]=> string(0) "" ["taxation_access"]=> string(3) "all" ["taxation_cumulative"]=> string(1) "0" ["taxation_post_code"]=> string(0) "" ["taxation_date_start"]=> string(1) "0" ["taxation_date_end"]=> string(1) "0" ["taxation_internal_code"]=> string(0) "" ["taxation_note"]=> string(0) "" ["taxation_site_id"]=> string(0) "" ["taxation_ordering"]=> string(1) "0" ["tax_rate"]=> string(7) "0.20000" ["zone_type"]=> string(7) "country" ["tax_ratio"]=> int(1) ["tax_amount"]=> float(10.37) ["amount"]=> float(51.86) } } ["price_value_without_discount"]=> float(61.28) ["price_value_without_discount_with_tax"]=> float(73.54) ["taxes_without_discount"]=> array(1) { ["0000_00000006"]=> object(stdClass)#1331 (20) { ["taxation_id"]=> string(1) "6" ["zone_namekey"]=> array(1) { [0]=> string(17) "country_France_73" } ["category_namekey"]=> string(24) "tax_1654959073_327727726" ["tax_namekey"]=> string(2) "20" ["taxation_published"]=> string(1) "1" ["taxation_type"]=> string(0) "" ["taxation_access"]=> string(3) "all" ["taxation_cumulative"]=> string(1) "0" ["taxation_post_code"]=> string(0) "" ["taxation_date_start"]=> string(1) "0" ["taxation_date_end"]=> string(1) "0" ["taxation_internal_code"]=> string(0) "" ["taxation_note"]=> string(0) "" ["taxation_site_id"]=> string(0) "" ["taxation_ordering"]=> string(1) "0" ["tax_rate"]=> string(7) "0.20000" ["zone_type"]=> string(7) "country" ["tax_ratio"]=> int(1) ["tax_amount"]=> float(12.26) ["amount"]=> float(61.28) } } }

et la configuration de la réduction


théoriquement 61.28 - 11.31 = 49.97 et non 51.86

Je ne comprends pas d'ou vient ce décalage

Pouvez vous m'éclairer svp ?

Merci d'avance

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #345725 by nicolas
Bonjour,

C'est surement une question de taxes.
Vous voulez surement sélectionner la catégorie de taxes de vos produits dans l'option du même nom dans votre réduction.
Aussi, attention à l'option "Appliquer les réductions" de la configuration qui permet de changer la façon dont les réductions sont appliquées par rapport aux taxes.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #345730 by Minie
Replied by Minie on topic Ecart de prix des réductions
Bonjour,

super ! effectivement, c'était un souci de configuration globale, "Appliquer les réductions" était réglé sur "après les taxes", problème résolu, merci beaucoup :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds
Powered by Kunena Forum