-
Notifications
You must be signed in to change notification settings - Fork 71
Refonte - Trésorerie > Journal > Ajout/Edition #2108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
8d9992d to
d23e6d7
Compare
sources/AppBundle/Accounting/Model/Repository/EventRepository.php
Outdated
Show resolved
Hide resolved
sources/AppBundle/Accounting/Model/Repository/TransactionRepository.php
Outdated
Show resolved
Hide resolved
sources/AppBundle/Controller/Admin/Accounting/Journal/EditTransactionAction.php
Outdated
Show resolved
Hide resolved
e7d187e to
3efad79
Compare
3efad79 to
bd5dcf0
Compare
64946ed to
923fcb4
Compare
e2591e0 to
62c7d45
Compare
| {link: 'apply-vat-20', input: 'transaction_amountTva20', rate: 0.2}, | ||
| {link: 'apply-vat-0', input: 'transaction_amountTva0', rate: 0} | ||
| ]; | ||
| const formater = new Intl.NumberFormat("en-US", {maximumFractionDigits: 2, minimumFractionDigits: 2}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Là maintenant ça met 1,234.56 mais ça devrait être 1234.56 😄
Dans l'ancien code je ne vois pas de formater, est-ce que c'est nécessaire du coup ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
décidément 😅 , j'ai retiré le formater et ai forcé le nombre à 2 chiffre après la virgule (ex: 1000.00)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alors désolé du coup nouveau soucis 🙃
Les montants calculés sont dans le bon format mais ne sont pas corrects.
Par exemple pour un montant TTC de 180.59 on devrait avoir :
- 5.5% =>
171.18(sur la branche y'a170.62) - 10% =>
164.17(sur la branche y'a163.64) - 20% =>
150.49(sur la branche y'a150.00) - non soumis =>
180.59(sur la branche y'a180.00)
Un arrondi foireux je suppose. Tu peux utiliser ce site pour vérifier que le calcul est bon : https://www.lafinancepourtous.com/outils/calculateurs/calculateur-de-tva/
62c7d45 to
a69c06e
Compare
fixes #2107