Wrong ES VAT list when invoices are cancelled
Since changeset22eabf722a91 when an invoice is refunded it is mark as cancel, which excludes it from the ES VAT LIST. As the refund is in paid state this is included on the VAT list making the real amount of the party less than the real one.
Thanks to @josesalvador for explaining me the case.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Sergi Almacellas Abellana assigned to @pokoli
assigned to @pokoli
- Sergi Almacellas Abellana added accounting type::behavior + 1 deleted label
added accounting type::behavior + 1 deleted label
- Sergi Almacellas Abellana added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
review289441002 updated at https://codereview.tryton.org/289441002/#ps293161003
- Owner
I'm a little bit astonished that in Spain it is allowed to use the cancellation of customer invoice.
Well, first I'm not an accountant but I'm gonna to try to help here without to put too noise to the issue.
AFAIK there is only two ways to cancel an invoice in Spain:
- Through a rectificative invoice
- Through a refund invoice
The first one must be used when the invoice is cancelled by a data error like:
- VAT
- Date
- Taxes
- and so on...
The term refund is used when the invoice has to fix things like:
- partial or total refund
- partial or total cancel of some service invoiced
- and so on...
Both are implemented in the same way. No invoice is deleted and all of them must be taken into account to calculate taxes.
In the case of this issue the mistake was not to take into account the cancelled invoice so the resultant amount was lesser than expected.
I think that probably we are only against a naming problem/misunderstanding.
Here a reference (in Spanish) with more detail about your question from a well known accounting and invoicing system used in Spain:
https://anfix.com/blog/rectificar-una-factura-o-anularla-no-es-lo-mismo/review289441002 updated at https://codereview.tryton.org/289441002/#ps256801002
New changeset fef002013c63 by Sergi Almacellas Abellana in branch 'default':
Exclude refunds from cancelled invoices on ES VAT List
https://hg.tryton.org/modules/account_es/rev/fef002013c63
New changeset 3df94e4eb13e by Sergi Almacellas Abellana in branch 'default':
Add test for reporting with cancelled invoices
https://hg.tryton.org/modules/account_es/rev/3df94e4eb13e- Roundup Robot added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
- Roundup Robot closed
closed
New changeset ca657ec3bc79 by Sergi Almacellas Abellana in branch 'default':
Exclude refunds from cancelled invoices on ES VAT List
https://hg.tryton.org/tryton-env/rev/ca657ec3bc79New changeset f21ac68b8048 by Sergi Almacellas Abellana in branch '5.4':
Exclude refunds from cancelled invoices on ES VAT List
https://hg.tryton.org/modules/account_es/rev/f21ac68b8048
New changeset 31e99858b795 by Sergi Almacellas Abellana in branch '5.2':
Exclude refunds from cancelled invoices on ES VAT List
https://hg.tryton.org/modules/account_es/rev/31e99858b795- Sergi Almacellas Abellana mentioned in issue #9221 (closed)
mentioned in issue #9221 (closed)
- Cédric Krier mentioned in issue #10030 (closed)
mentioned in issue #10030 (closed)