Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016175Openbravo ERP09. Financial managementpublic2011-03-09 09:552011-05-13 09:23
maite 
dalsasua 
urgentmajoralways
closedfixed 
5
2.50MP27 
2.50MP28 
Core
No
0016175: According to law, Reversed Invoices should follow its own DocumentSequence
According to law, Reversed Invoices should follow its own Document Sequence.

That information is contained in "Real Decreto 1496/2003":

"Real Decreto 1496/2003, de 28 de noviembre, por el que se aprueba el Reglamento por el que se regulan las obligaciones de facturación, y se modifica el Reglamento del Impuesto sobre el Valor Añadido.

Artículo 6. Contenido de la factura.

1. Redacción según Real Decreto 1789/2010, de 30 de diciembre.Toda factura y sus copias contendrán los datos o requisitos que se citan a continuación, sin perjuicio de los que puedan resultar obligatorios a otros efectos y de la posibilidad de incluir cualesquiera otras menciones:

  1.Número y, en su caso, serie. La numeración de las facturas dentro de cada serie será correlativa. Se podrán expedir facturas mediante series separadas cuando existan razones que lo justifiquen y, entre otros supuestos, cuando el obligado a su expedición cuente con varios establecimientos desde los que efectúe sus operaciones y cuando el obligado a su expedición realice operaciones de distinta naturaleza.

No obstante, será obligatoria, en todo caso, la expedición en series específicas de las facturas siguientes:

1. Las expedidas por los destinatarios de las operaciones o por terceros a que se refiere el artículo 5 , para cada uno de los cuales deberá existir una serie distinta.
2. Las rectificativas.
3. Las que se expidan conforme a la disposición adicional quinta del Reglamento del Impuesto sobre el Valor Añadido, aprobado por el artículo 1 del Real Decreto 1624/1992, de 29 de diciembre. "
1. Sales Management || Transactions || Sales Invoice || Header: create invoice for any BP and any product
2. Complete it and Void it
3. Realize that associated invoice uses same document type and sequence that original invoice.
No tags attached.
related to feature request 0012441 new jonalegriaesarte Localization Pack: Spain Corrective Invoices 
depends on backport 00165962.50MP28 closed dalsasua Openbravo ERP According to law, Reversed Invoices should follow its own DocumentSequence 
blocks defect 0016029 closed dalsasua Localization Pack: Spain Voided invoices are not taken into account in Invoice Register Book 
Issue History
2011-03-09 09:55maiteNew Issue
2011-03-09 09:55maiteAssigned To => dalsasua
2011-03-09 09:55maiteModules => Core
2011-03-09 10:04maiteIssue Monitored: networkb
2011-03-09 10:07psanjuanNote Added: 0034676
2011-03-09 10:07psanjuanRelationship addedrelated to 0012441
2011-03-09 11:19psanjuanNote Edited: 0034676bug_revision_view_page.php?bugnote_id=0034676#r1578
2011-03-10 13:58psanjuanRelationship addedblocks 0016029
2011-03-10 14:00psanjuanNote Edited: 0034676bug_revision_view_page.php?bugnote_id=0034676#r1591
2011-03-10 15:02psanjuanNote Edited: 0034676bug_revision_view_page.php?bugnote_id=0034676#r1592
2011-03-10 15:03psanjuanNote Edited: 0034676bug_revision_view_page.php?bugnote_id=0034676#r1593
2011-03-11 11:48psanjuanNote Edited: 0034676bug_revision_view_page.php?bugnote_id=0034676#r1609
2011-03-31 16:17ioritzCiaStatusnew => scheduled
2011-03-31 16:17ioritzCiafix_in_branch => pi
2011-04-04 11:31hgbotCheckin
2011-04-04 11:31hgbotNote Added: 0035519
2011-04-04 11:31hgbotStatusscheduled => resolved
2011-04-04 11:31hgbotResolutionopen => fixed
2011-04-04 11:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f1d8412beedc642d53aee28a1cf8dadbb2a9cdd8 [^]
2011-04-04 13:04ioritzCiaNote Added: 0035538
2011-04-26 16:25hgbotCheckin
2011-04-26 16:25hgbotNote Added: 0036101
2011-05-12 13:26hudsonbotCheckin
2011-05-12 13:26hudsonbotNote Added: 0036766
2011-05-12 13:44hgbotCheckin
2011-05-12 13:44hgbotNote Added: 0036893
2011-05-13 06:23hudsonbotCheckin
2011-05-13 06:23hudsonbotNote Added: 0036935
2011-05-13 09:23maiteNote Added: 0036948
2011-05-13 09:23maiteStatusresolved => closed

Notes
(0034676)
psanjuan   
2011-03-09 10:07   
(edited on: 2011-03-11 11:48)
OB does not support "Facturas Rectificativas" (Corrective Invoices) functionality as such. There is already a feature request created. See issue number: 0012241

It is also true that Void invoices must follow a specific document sequence numbering but that is not possible because a void invoice is exactly the same document as an invoice (either an AP Invoice or an AR Invoice), unless a new document type (such as Factura Rectificativa) is setup as "Document Cancelled" for a given document type, let's say "AR Invoice" in the Document Definition window.

We strongly recommend not to use Void action but a new document type as described above, which is about to be included in Core, named "Corrective Invoice".
Its behaviour is going to be the same as an invoice but:
- these new invoice type will follow a different number sequence
- these new invoices must clearly stated the "Corrective Invoice" while being printed, as well as the reason for the correction and the invoice/s being corrected. That will be included in the "Description" field

(0035519)
hgbot   
2011-04-04 11:31   
Repository: erp/devel/pi
Changeset: f1d8412beedc642d53aee28a1cf8dadbb2a9cdd8
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Fri Apr 01 12:18:33 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f1d8412beedc642d53aee28a1cf8dadbb2a9cdd8 [^]

Fixes issue 16175: According to law, Reversed Invoices should follow its own DocumentSequence.

---
M referencedata/standard/Initial_Setup.xml
---
(0035538)
ioritzCia   
2011-04-04 13:04   
* Testing the issue

1. Sales Management || Transactions || Sales Invoice || Header: create invoice for any BP and any product
2. Complete it and Void it
3. Realize that associated invoice uses a new document type and sequence that original invoice.

* Other areas affected.

No other areas affected.

* Issue resolution:

This issue has been solved creating two new document types (Reversed Sales Invoice and Reversed Purchase Invoice) each one with it's own secuence. These two new document types has been configured as the cancelled documents of Sales Invoice and Purchase Invoice. This change has been done in the dataset. If you are not using the dataset or you are using any other document types and you are facing the same roblem, you can change it manually.
(0036101)
hgbot   
2011-04-26 16:25   
Repository: erp/devel/pi
Changeset: 0735ae63ec2bbc9140b41f6269c7b24d44c43b94
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Thu Apr 14 17:25:12 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0735ae63ec2bbc9140b41f6269c7b24d44c43b94 [^]

Issue 16175: Sample Data updated to this issue's commit.

---
M referencedata/sampledata/F_B_International_Group.xml
---
(0036766)
hudsonbot   
2011-05-12 13:26   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c40e579fcd38 [^]

Maturity status: Test
(0036893)
hgbot   
2011-05-12 13:44   
Repository: erp/devel/pi
Changeset: ad377edeedcd8ac6e11acd7df6aa5ba19b0745bc
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Thu May 12 12:24:34 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ad377edeedcd8ac6e11acd7df6aa5ba19b0745bc [^]

[cleanup] Reapplied changeset 0735ae63ec2b
Issue 16175: Sample Data updated to this issue commit

---
M referencedata/sampledata/F_B_International_Group.xml
---
(0036935)
hudsonbot   
2011-05-13 06:23   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d221ad9e329e [^]

Maturity status: Test
(0036948)
maite   
2011-05-13 09:23   
verified