Spain B2G: Correction Data
You can model corrections to a preceding invoice.
For Spanish B2G Documents, you can model corrections data. This data corrects preceding invoices.
Use the CorrectionData
Extension to model this information.
Elements
The following elements are grouped in the /Invoice/BillingReference/InvoiceDocumentReference/UBLExtensions/ UBLExtension/ExtensionContent/InoiceDocumentReferenceExtension/CorrectionData/
element:
Element | Cardinality | Description |
---|---|---|
/InvoicePeriod/StartDate | 1..1 | The start date of the tax period on the corrected invoice. |
/InvoicePeriod/EndDate | 1..1 | The end date of the tax period on the corrected invoice. |
/CorrectionMethod | 1..1 | The code that represents the method used to make the correction. |
/CorrectionReason | 0..1 | An additional reason for the correction. |
/CorrectionReasonCode | 1..1 | The code that represents the reason for the correction. |
/InvoiceSeriesCode | 0..1 | The serial number of the corrected invoice. |
In addition, you must specify the the invoice number and issue date of the invoice that is being corrected in the following elements:
Element | Cardinality | Description |
---|---|---|
Invoice/ID | 0..1 | The invoice serial number of the invoice that is being corrected. |
Invoice/IssueDate | 0..1 | The date the invoice that is being corrected was issued. |
Restrictions
- You must specify the invoice number and issue date of the invoice that is being corrected in the ID and IssueDate elements.
- The value in the
InvoiceSeriesCode
element is limited to 20 characters. - You must use one of the following values in the
CorrectionMethod
element:
Value | Description |
---|---|
VRBL:ES-B2G:01 | Full items |
VRBL:ES-B2G:02 | Corrected items only |
VRBL:ES-B2G:03 | Bulk deal |
VRBL:ES-B2G:04 | Authorized by the Tax Agency |
- You must use one of the following values for the
CorrectionReasonCode
element. The values are prefixed withVRBL:ES-B2G:
:
Value | Description |
---|---|
VRBL:ES-B2G:01 | Invoice number |
VRBL:ES-B2G:02 | Invoice serial number |
VRBL:ES-B2G:03 | Issue date |
VRBL:ES-B2G:04 | Name and surnames/Corporate name - Issuer (Sender) |
VRBL:ES-B2G:05 | Name and surnames/Corporate name - Receiver |
VRBL:ES-B2G:06 | Issuer's Tax Identification Number |
VRBL:ES-B2G:07 | Receiver's Tax Identification Number |
VRBL:ES-B2G:08 | Issuer's address |
VRBL:ES-B2G:09 | Receiver's address |
VRBL:ES-B2G:10 | Item line |
VRBL:ES-B2G:11 | Applicable Tax Rate |
VRBL:ES-B2G:12 | Applicable Tax Amount |
VRBL:ES-B2G:13 | Applicable Date/Period |
VRBL:ES-B2G:14 | Invoice Class |
VRBL:ES-B2G:15 | Legal literals |
VRBL:ES-B2G:16 | Taxable Base |
VRBL:ES-B2G:80 | Calculation of tax outputs |
VRBL:ES-B2G:81 | Calculation of tax inputs |
VRBL:ES-B2G:82 | Taxable Base modified due to return of packages and packaging materials |
VRBL:ES-B2G:83 | Taxable Base modified due to discounts and rebates |
VRBL:ES-B2G:84 | Taxable Base modified due to firm court ruling or administrative decision |
VRBL:ES-B2G:85 | Taxable Base modified due to unpaid outputs where there is a judgement opening insolvency proceedings |
Example
<ubl:Invoice>
<!-- Code omitted for clarity -->
umentReference>
<cec:UBLExtensions>
<cec:UBLExtension>
<cec:ExtensionContent>
<vrbl:InvoiceDocumentReferenceExtension>
<vrbl:CorrectionData>
<vrbl:CorrectionMethod>VRBL:ES-B2G:01</vrbl:CorrectionMethod>
<vrbl:CorrectionReasonCode>VRBL:ES-B2G:02</vrbl:CorrectionReasonCode>
<vrbl:CorrectionReason>Additional reason</vrbl:CorrectionReason>
<cac:InvoicePeriod>
<cbc:StartDate>2023-09-01</cbc:StartDate>
<cbc:EndDate>2023-09-30</cbc:EndDate>
</cac:InvoicePeriod>
<vrbl:InvoiceSeries>INV0000000012</vrbl:InvoiceSeries>
</vrbl:CorrectionData>
</vrbl:InvoiceDocumentReferenceExtension>
</cec:ExtensionContent>
</cec:UBLExtension>
</cec:UBLExtensions>
<cbc:ID>INV1234</cbc:ID>
<cbc:IssueDate>2023-09-01</cbc:IssueDate>
</cac:InvoiceDocumentReference>
</cac:BillingReference>
<!-- Code omitted for clarity -->
</ubl:Invoice>
Updated 10 days ago