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

Impossible to validate the invoices with already paid amounts with 0% VAT #13877

Closed
rueBejo opened this issue May 12, 2020 · 2 comments
Closed
Labels
Bug This is a bug (something does not work as expected)

Comments

@rueBejo
Copy link

rueBejo commented May 12, 2020

Hello,

Bug

Impossible to validate the invoices with already paid amounts from previous invoices as downpayments when a line has a 0% VAT.
Related to Bug #13333.

Environment

  • Version: 11.0.4
  • OS: Linux
  • Web server: Apache
  • PHP: 7.2
  • Database: MySql
  • URL(s): /compta/facture/card.php?facid=123&action=valid

Expected and actual behavior

Shall be able to apply downpayments and discounts already paid to the invoices. Everything is proceeding accordingly until the validation step where error message occurs :

Total of lines can't be negative for a given VAT rate.

Update 88d98ac solves this except in case of an account with 0% VAT.

Total of lines can't be negative for a given VAT rate : 0% rate shall be an exception in the checking loop.

Steps to reproduce the behaviour

  • Edit a new proposal, accept it
  • Make a new invoice from this proposal and choose account invoice with a 0% VAT rate
  • Transform the account into a 'client remise'
  • Make the final invoice from the proposal
  • Apply the 'Remise'
  • Validate the invoice : the error message appear and invoice stays in draft state
@rueBejo rueBejo added the Bug This is a bug (something does not work as expected) label May 12, 2020
@eldy
Copy link
Member

eldy commented Jun 17, 2020

Can you provide a screenshot of content of invoice that show this trouble ? (if you can on demo.dolibarr.org)

@rueBejo
Copy link
Author

rueBejo commented Jun 19, 2020

Bonjour,

To reproduce this bug :

  • make a commercial proposal
  • make a deposit invoice ("acompte") from this commercial proposal with a 0% VAT rate. Flag this invoice as payed
  • make a final invoice from the proposal and apply the discount from the deposit
  • validate the invoice : error message will appear

See attached file.
dolibarr-11 0 4-deposit

I believe that an exception should be made for 0% rate in global VAT amount check.
Bug #13333 was fixed for others VAT rates, but still present for 0%.

Regards,

Bruno

@eldy eldy closed this as completed in 15af3d6 Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

2 participants