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

[Bug] [Fiscal] VAT overview calculation different from detail for partially paid service #5374

Closed
mdeweerd opened this issue Jun 19, 2016 · 13 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@mdeweerd
Copy link
Contributor

Bug

The VAT for a partially paid service is used 100% when checking VAT totals per month/trimester (http://demo.dolibarr.org/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy ) and partially when checking detail (http://demo.dolibarr.org/compta/tva/quadri_detail.php?leftmenu=tax_vat&month=8&year=2016 ).

Environment

  • Version: 3.9.2 - Tested on demo.dolibarr.org - possibly present since a long time.

Expected and actual behavior

Partial payment used both for summary report and detailed report.
Links of the summary report pointing to the detailed report should give same result.

Steps to reproduce the behavior

a. Make sure that the configuration indicates that VAT is due for services when paid/collected.
b. Create a customer invoice of 300 excl. VAT with VAT of 10% at the date of today. The VAT value is then 30. Validate the invoice, etc.
c. Pay the invoice next month for the amount of 250. This pays 22.73 VAT and 227.27 excl. VAT.
d. Go to VAT overview (http://demo.dolibarr.org/compta/tva/index.php?leftmenu=tax_vat&mainmenu=accountancy ). Observe that VAT taken into account is 30 [by making the payment next month, it is likely that this invoice is the only one visible].
e. click on the detail (month name for month of invoice). Observe that the VAT taken into account is 22.73 for the total and the detail.

Conclusions:

  • The detail is different from the overview;
  • The overview should indicate the value shown in the detail.
@altairis-tof
Copy link
Contributor

i confirm the bug;
one should adapt compta/tva/index.php to partial payments like it's done in compta/tva/quadri_detail.php

@rdoursenaud rdoursenaud added the Works for me / Can't reproduce It seems not possible to reproduce the bug. label Jan 20, 2017
@rdoursenaud
Copy link
Contributor

At least in france, full VAT is due for the state as soon as it's invoiced so I see this as a feature.
Is this different for you?

@mdeweerd
Copy link
Contributor Author

mdeweerd commented Jan 20, 2017

In France:

  • VAT is due for products that are shipped and services that are paid. There are some special rules (you can choose in some cases regarding the services).
    A product must be invoiced when it is shipped and a deposit invoice for products should not have VAT.
    A service must be invoiced within a certain delay after it is done and deposit invoices for services should have VAT. However VAT is only due when the customer paid it.
    You can check out the tax office instructions.
  • Dolibarr already manages this difference but the VAT totals per month/trimester is wrong while the detailed VAT report is correct. Both should report the same numbers whatever the rule is.

@rdoursenaud rdoursenaud added Bug This is a bug (something does not work as expected) and removed Works for me / Can't reproduce It seems not possible to reproduce the bug. labels Jan 25, 2017
@rdoursenaud
Copy link
Contributor

@mdeweerd Thanks for your reply. I think I understand the issue better now. I've tagged the bug appropriately.

@patalex74
Copy link

@rdoursenaud
TVA sur encaissement
Facture client de 1562,40 TTC payée en 500+500+500+62,40
vue balance TVA : 760,40

Vue détaillée par mois :
10,40+80,01,+80,01+80,01+9,98=260,41 -> OK

Merci de votre retour et bonne journée.

@BebZ
Copy link

BebZ commented Feb 6, 2017

Thumbs up for the explanation ;) !!
VAT can be due on invoice OR on cash (when payment is made)
So the detailled view per month is wrong
when the first option (VAT due on invoice) is chosen in configuration, no ?

@patalex74
Copy link

Here are screenshots :
balancetva
tvamois

@novakin
Copy link

novakin commented Feb 7, 2017

Global view is wrong, detailed view is correct.

@novakin
Copy link

novakin commented Mar 18, 2017

Anyone found a way to fix this ?

@mdeweerd mdeweerd changed the title VAT overview calculation different from detail for partially paid service [Bug] [Fiscal] VAT overview calculation different from detail for partially paid service Oct 3, 2017
@simnandez
Copy link
Member

This issue is on an old version. It is very likely that this problem is fixed in the new versions. If no, please re-open a issue

@novakin
Copy link

novakin commented Dec 2, 2017

This is still not fixed for me with the latest stable version 6.0.3

@mdeweerd
Copy link
Contributor Author

mdeweerd commented Dec 2, 2017

I just checked on the demo (6.0.4). The issue still exists.

As the issue has been open for more than a year in "Bug" status without benefiting from a level of importance, I suppose that reopening the issue will not help more to fix it.
I am not reopening an apparently not important bug report. I know the bug, I take it into account when checking the VAT detail for a month.

@atm-maxime
Copy link
Member

This seems to be fixed in latest version.
Please check and reopen issue if needed.

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

8 participants