Guix69 Posted May 21, 2015 Share Posted May 21, 2015 (edited) Bonjour je rencontre un soucis d'arrondi assez gênant sur les ventes avec des bons de réduction. (réduction par groupe et catégorie) Un exemple tout bête. Une pièce vendu à 34€ TTC obtiens 5% de réduction, le logiciel me le met à 32.30€ TTC au lieu de 34/1.05 = 32.38€ TTC Quelqu'un a une solution pour ce problème ? Presta 1.6.0.14 Edited May 22, 2015 by Guix69 (see edit history) Link to comment Share on other sites More sharing options...
prestasafe Posted May 21, 2015 Share Posted May 21, 2015 BOnjour, Quelle version de prestashop possède tu ? Link to comment Share on other sites More sharing options...
Guix69 Posted May 21, 2015 Author Share Posted May 21, 2015 (edited) bonjour, merci pour votre réponse. je l'ai écrit en bas de post la dernière 1.6.0.14 Edited May 21, 2015 by Guix69 (see edit history) Link to comment Share on other sites More sharing options...
prestasafe Posted May 21, 2015 Share Posted May 21, 2015 Pardon je n'avais pas vu. Normalement cette version est censée être corrigée... Il faut regarder au niveau de la class Tools::convertPrice peut être pour voir comment est géré l'arrondi. Link to comment Share on other sites More sharing options...
Guix69 Posted May 21, 2015 Author Share Posted May 21, 2015 (edited) Dans la configuration je suis en arrondi bancaire. En fouillant un peu sur internet, j'ai trouvé ca : https://github.com/PrestaShop/PrestaShop/commit/dd87ac48ca33781ce868cab7533c6cbdbb8f6548 Vous me parlez de ces fichiers à modifier ? Edited May 21, 2015 by Guix69 (see edit history) Link to comment Share on other sites More sharing options...
Guix69 Posted May 21, 2015 Author Share Posted May 21, 2015 (edited) En fait, je crois que je plane complètement, le calcul pour une réduction sur un prix TTC est : Prix TTC * (1- la remise/100) Soit 34* (1 - 5/100) = 32.3 Mais alors pourquoi le calcul de la TVA fonctionne 34 / 1.20 = 28.33 mais la réduction de 20% sur le prix de vente TTC non ? 27.2€ Toute l'aprem la dessus, j’ai la tête vrac.... Edited May 21, 2015 by Guix69 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now