Skip to content
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

[FIX][l10n_it_withholding_tax] coeff computation #565

Merged

Conversation

SimoRubi
Copy link
Member

@SimoRubi SimoRubi commented Aug 2, 2018

Steps:

  1. Configure a withholding tax having:
    • Base coeff: 0.5
    • Tax %: 23
  2. Open an invoice having:
    • Untaxed amount: 8991.94
    • Tax (22%): 2145
  3. In the invoice, add the withholding tax defined in 1, having:
    • Base: 4875
    • Tax: 1121.25
  4. Validate the invoice
  5. Pay 5015.69, the amount automatically paid is 561.50
  6. Pay the remaining 5000

Before this PR:
The amount automatically paid is 559.74 and the invoice remains open for 1 cent!

After this PR:
The amount automatically paid is 559.75 and the invoice is fully paid

Copy link
Member

@eLBati eLBati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eLBati eLBati merged commit c8a2a3f into OCA:10.0 Aug 22, 2018
alessandrocamilli added a commit to alessandrocamilli/l10n-italy that referenced this pull request Aug 23, 2018
alessandrocamilli added a commit to alessandrocamilli/l10n-italy that referenced this pull request Aug 29, 2018
added PR OCA#565

integration OCA#578
alessandrocamilli added a commit to alessandrocamilli/l10n-italy that referenced this pull request Sep 12, 2018
Added tests

added PR OCA#565

integration OCA#578
alessandrocamilli added a commit to alessandrocamilli/l10n-italy that referenced this pull request Sep 24, 2018
Added tests

added PR OCA#565

integration OCA#578
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Oct 3, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Oct 3, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Oct 3, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Oct 3, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Nov 8, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Nov 8, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Nov 9, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Nov 21, 2018
SimoRubi added a commit to SimoRubi/l10n-italy that referenced this pull request Aug 7, 2019
SimoRubi added a commit to SimoRubi/l10n-italy that referenced this pull request Aug 7, 2019
TheMule71 pushed a commit to TheMule71/l10n-italy that referenced this pull request Dec 17, 2020
TheMule71 pushed a commit to TheMule71/l10n-italy that referenced this pull request May 5, 2021
TheMule71 pushed a commit to TheMule71/l10n-italy that referenced this pull request Nov 2, 2022
TheMule71 pushed a commit to TheMule71/l10n-italy that referenced this pull request Dec 16, 2022
TonyMasciI pushed a commit to saydigital/l10n-italy that referenced this pull request Jan 9, 2023
TonyMasciI pushed a commit to saydigital/l10n-italy that referenced this pull request Jan 16, 2023
TonyMasciI pushed a commit to saydigital/l10n-italy that referenced this pull request Jan 27, 2023
are-agilebg pushed a commit to are-agilebg/l10n-italy that referenced this pull request May 10, 2023
are-agilebg pushed a commit to are-agilebg/l10n-italy that referenced this pull request May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants