Академический Документы
Профессиональный Документы
Культура Документы
Collaborators
Changes record
1 2017-05-10 AV y BAV record books to Travel Agencies and Travel Agencies Deregistration have been added David Gmez Rolln Change to v5 version.
together with the customization of the fields related.
Update of the list related to the fields TIPOLIBRO, TIPONOEXENCIN, MERTIPONOEXENCIN,
SERVTIPONOEXENCIN, REGESPECIAL, MEDIO, IDEMISORTIPO and IDCONTRATIPO.
The new fiels TITTULARNOMEXT, NOMBREEMISOREXT y RAZONCONTRAEXT are added to
complete the information of the company name fields up to 120 characters.
The new fields BASESINIMP, REGADD1, REGADD2, IDSUMPROPIO and USOPRIVADO and
NUMACUERDO are added.
Change the status in the TIPONOEXENCION for Invoices Received.
Add LRINMUEBLE file to include information about 15 properties.
The fields NUMERODUA and FECCONTABLEDUA are deprecated
Remove comments, customization and value lists in DEPRECATED fields.
Content index
1. Standards and Recommendations......................................................................................................................................................................................................................................................... 4
2. Link File Proposal..................................................................................................................................................................................................................................................................................... 5
2.1. Record Book submission response global header data.....................................................................................................................................................................................................................................................6
2.2. Record Book Entry. All books................................................................................................................................................................................................................................................................................................16
2.3. Record Book Entry. Grouped Invoices Detail. (FE and FR) ............................................................................................................................................................................................................................................36
2.4. Record Book Entry. Rectified Invoices detail. (FE and FR)............................................................................................................................................................................................................................................37
2.5. Record Book Entry. Taxes breakdowns. (FE and FR) ......................................................................................................................................................................................................................................................38
2.6. Record Book Entry. Taxes breakdown. VAT detail. (FE and FR)...................................................................................................................................................................................................................................43
2.7. Record Book Entry. Receivables/Payables detail. (CE and PR) ...................................................................................................................................................................................................................................45
2.8. Properties breakdowns. Only for FE with REGESPECIAL 12 or 13. ............................................................................................................................................................................................................................47
3. Examples................................................................................................................................................................................................................................................................................................. 49
3.1. SIILR.TXT (Record Book submission response global header data) ...........................................................................................................................................................................................................................49
3.2. LRAPUNTE.TXT (Record Book Entry. All books.) .............................................................................................................................................................................................................................................................49
3.3. LRGRUP.TXT (Record Book Entry. Grouped Invoices Detail. (FE and FR)) ...............................................................................................................................................................................................................49
3.4. LRRECT.TXT (Record Book Entry. Rectified Invoices detail. (FE and FR)) ...............................................................................................................................................................................................................50
3.5. LRIMP.TXT (Record Book Entry. Taxes breakdowns. (FE and FR)) .............................................................................................................................................................................................................................50
3.6. LRIVA.TXT (Record Book Entry. Taxes breakdown. VAT detail. (FE and FR)) ...........................................................................................................................................................................................................50
3.7. LRCOBRO.TXT (Record Book Entry. Receivables/Payables detail. (CE and PR)) ...................................................................................................................................................................................................51
3.8. LRINMUEBLE.TXT (Properties breakdowns. Only for FE with REGESPECIAL 12 or 13.) ......................................................................................................................................................................................51
4. Supported partners................................................................................................................................................................................................................................................................................ 52
5. Associated documents.......................................................................................................................................................................................................................................................................... 53
2.3. Record Book Entry. Grouped Invoices Detail. (FE and FR)
LRGRUP.TXT SIILRApunteGR SIILRApunteREC SIILRApunteIMP SIILRApunteCOB SIILRApunteINMU...
2.4. Record Book Entry. Rectified Invoices detail. (FE and FR)
LRRECT.TXT SIILRApunteIVA
Lengt
Field Type Description
h
Lengt
Field Type Description
h
It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Lengt
Field Type Description
h
Lengt
Field Type Description
h
Will be informed the first 120 concatenation ones starting from the left.
Lengt
Field Type Description
h
Lengt
Field Type Description
h
Lengt
Field Type Description
h
Lengt
Field Type Description
h
TITULARNOMEXT X 120 Company name extension, name of holder of the Record Book
Lengt
Field Type Description
h
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
Lengt
Field Type Description
h
Lengt
Field Type Description
h
The Year/financial period must be between current year and previous years.
Lengt
Field Type Description
h
If the Year corresponds with the current year, the financial period shall not exceed current period.
Invoices Issued Record Book, Received Invoices Record Book and Intra-community transactions will have a monthly periodicity. Cash Payments Book, Insurance Operations,
Travel Agencies and Investment Assets shall have annual periodicity.
Lengt
Field Type Description
h
Every invoice has to have identified the invoice issuer, NIFEMISOR field must be filled in case of spanish taxpayers and the set of fileds, IDEMISOR, IDEMISORPAIS,
IDEMISORTIPO in case of foreign taxpayers
Every invoice has to have identified the invoice issuer, NIFEMISOR field must be filled in case of spanish taxpayers and the set of fileds, IDEMISOR, IDEMISORPAIS,
IDEMISORTIPO in case of foreign taxpayers
Lengt
Field Type Description
h
Lengt
Field Type Description
h
In F4 Received Invoices (global summary entry) NUMSERIE will show the initial number of the invoice's range to register.
Format dd-mm-yyyy
Lengt
Field Type Description
h
Mandatory if TIPORECTIFICA = S
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Lengt
Field Type Description
h
Format dd-mm-yyyy
Lengt
Field Type Description
h
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points.
Only be filled if (not mandatory) REGESPECIAL = 06 (Special regime for VAT group entities (advanced level))
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Lengt
Field Type Description
h
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Mandatory for received and optional for inssued F2, F4 and R5.
Block with details of Counterparty invoice (E o R), intra-community transaction, insurance operations, cash payments or travel agencies.
Lengt
Field Type Description
h
Lengt
Field Type Description
h
Mandatory for received and optional for inssued Simplified invoice and Invoice summary entry.
Block with details of Counterparty invoice (E o R), intra-community transaction, insurance operations, cash payments or travel agencies.
The counterparty must be identified, either by NIF or by the combination IDCONTRAPARTE IDCONTRAPAIS and IDCONTRATIPO.
Lengt
Field Type Description
h
Lengt
Field Type Description
h
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points.
Format dd-mm-yyyy
Format \d{1,2}(\.\d{0,2})?
Sign up to 2 integer positions, decimal sign . up to 2 decimal points
Lengt
Field Type Description
h
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points.
Will show the final number of the Simplified invoice's range to register of global summary entry (F4).
Lengt
Field Type Description
h
It must be informed: first surname, second surname and name without punctuation marks.
It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
Lengt
Field Type Description
h
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
NUMERODUA X 40 DEPRECATED
FECCONTABLEDUA X 10 DEPRECATED
VARIOSDESTINOS X 20 Identificator to specify if the invoice has several receivers
Only for R1, R5 or F4 invoices type especifies if it has reduction of taxable income for grating of coupons, allowances or discounts only when original of the invoice is issued.?If this
field is not informed it would be set "N" as default value.
It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
IIt's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Lengt
Field Type Description
h
It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
Mandatory for received and optional for inssued F2, F4 and R5. Block with details of Counterparty invoice (E o R), intra-community transaction, insurance operations, cash
payments or travel agencies.
Lengt
Field Type Description
h
Key to identify operation type orspecial regime of transaction or liability. It's possible to consign 3 different keys with the fields REGESPECIAL, REGEADD1 and REGEADD2
Validations to be considered will depend on the key consigned into the field REGESPECIAL.
Lengt
Field Type Description
h
03: Transactions under the special regime for used goods, artworks, antiques and collectable items (135-139 of the VAT act)
04: Special regime for gold investments
05: Special regime for travel agencies
06: Special regime for business groups in VAT (Advanced Level)
07: Special regime cash basis
08: Transactions subject to the Ceuta and Melilla production, services and imports tax and the general indirect tax of the Canary Islands (IPSI/IGIC)
09: Invoicing of services rendered by travel agencies acting as mediators on behalf of third parties (4th additional condition of Royal Decree 1619/2012)
10: Collections on behalf of third parties of professional fees or intellectual property rights, copyrights or others on behalf of members, associates or associated members made
by societies, associations, professional colleges or other entities which, among other functions, perform collections
11: Leasing operations of the business premises subject to withholding tax
12: Leasing operations of the business premises not subject to withholding tax
13: Leasing operations of business premises that are subject and not subject to withholding tax
14: VAT invoice pending accrual (certifications of works whose recipient is a public administration)
15: VAT invoice pending accrual (uninterrupted operations)
16: First semester of 2017
Key to identify operation type orspecial regime of transaction or liability. It's possible to consign 3 different keys with the fields REGESPECIAL, REGEADD1 and REGEADD2
Validations to be considered will depend on the key consigned into the field REGESPECIAL.
Lengt
Field Type Description
h
by societies, associations, professional colleges or other entities which, among other functions, perform collections
11: Leasing operations of the business premises subject to withholding tax
12: Leasing operations of the business premises not subject to withholding tax
13: Leasing operations of business premises that are subject and not subject to withholding tax
14: VAT invoice pending accrual (certifications of works whose recipient is a public administration)
15: VAT invoice pending accrual (uninterrupted operations)
16: First semester of 2017
2.3. Record Book Entry. Grouped Invoices Detail. (FE and FR)
Record Book submission response global header data > Record Book Entry. All books. > Record Book Entry. Grouped Invoices Detail. (FE and FR)
Description: Conditional record. It just can be included (it's not mandatory) when the field TipoFactura (invoice type)=Invoiced issued to replace simplified invoices already
invoiced and declared.
Physical file name: LRGRUP.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 99999
Lengt
Field Type Description
h
Format dd-mm-yyyy
2.4. Record Book Entry. Rectified Invoices detail. (FE and FR)
Record Book submission response global header data > Record Book Entry. All books. > Record Book Entry. Rectified Invoices detail. (FE and FR)
Description: Conditional record. It just can be included (it's not mandatory) when the field TipoFactura (invoice type)= Corrected invoice.
Physical file name: LRRECT.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 99999
Lengt
Field Type Description
h
Format dd-mm-yyyy
Lengt
Field Type Description
h
On invoices issued, breakdown can be done at either invoice or operation level.?Both segments are mutually exclusive, consequently there can only appear the DesgloseFactura or
DesgloseTipoOperacion segment.?In case of invoices received, breakdown can only be done at invoice level.
Lengt
Field Type Description
h
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Taxes breakdowns for operation. Services provision operation subject and exempt.
Lengt
Field Type Description
h
Lengt
Field Type Description
h
Taxes breakdowns for operation. Delivery of goods operation subject and non-exempt.
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Lengt
Field Type Description
h
MERIMPNOSUJTAI N 16.2 Amount not subject to taxes: Operations not subject in TAI due to location rules.
2.6. Record Book Entry. Taxes breakdown. VAT detail. (FE and FR)
Record Book submission response global header data > Record Book Entry. All books. > Record Book Entry. Taxes breakdowns. (FE and FR) > Record Book Entry. Taxes
breakdown. VAT detail. (FE and FR)
Physical file name: LRIVA.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 6
Lengt
Field Type Description
h
Format \d{1,2}(\.\d{0,2})?
up to 2 integer positions, decimal sign . up to 2 decimal points
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Lengt
Field Type Description
h
Only for Special VAT Regime for Agriculture, Livestock and Fishing - 02
Format \d{1,2}(\.\d{0,2})?
up to 2 integer positions, decimal sign . up to 2 decimal points
Lengt
Field Type Description
h
It can only be filled if the invoice received/issued has been recorded with ClaveRegimenEspecialOTranscedencia=07 (Special regime cash basis)
Format dd-mm-yyyy
It can only be filled if the invoice received/issued has been recorded with ClaveRegimenEspecialOTranscedencia=07 (Special regime cash basis)
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points
Lengt
Field Type Description
h
It can only be filled if the invoice received/issued has been recorded with ClaveRegimenEspecialOTranscedencia=07 (Special regime cash basis)
It can only be filled if the invoice received/issued has been recorded with ClaveRegimenEspecialOTranscedencia=07 (Special regime cash basis)
Lengt
Field Type Description
h
3. EXAMPLES
3.3. LRGRUP.TXT (Record Book Entry. Grouped Invoices Detail. (FE and FR))
IDLR IDAPUNTE IDFACTURAG NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURAG NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURAG NUMSERIE
FECHAEXP
3.4. LRRECT.TXT (Record Book Entry. Rectified Invoices detail. (FE and FR))
IDLR IDAPUNTE IDFACTURARNIFEMISORIDEMISOR IDEMISORPAIS IDEMISORTIPO NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURARNIFEMISORIDEMISOR IDEMISORPAIS IDEMISORTIPO NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURARNIFEMISORIDEMISOR IDEMISORPAIS IDEMISORTIPO NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURARNIFEMISORIDEMISOR IDEMISORPAIS IDEMISORTIPO NUMSERIE
FECHAEXP
3.5. LRIMP.TXT (Record Book Entry. Taxes breakdowns. (FE and FR))
IDLR IDAPUNTE IDDESGLOSEO E3 1112S2 E3
1212S3 E5 1312S2
1412 1512 1612 1712 1812 1912N 2012
IDLR IDAPUNTE IDDESGLOSEF E6 512S2 E1
612S2 E5 712S3
812 912 1012 1112 1212 1312S 1412
IDLR IDAPUNTE IDDESGLOSEO E1 412S1 E5
512S3 E6 612S3
712 812 912 1012 1112 1212S 1312
IDLR IDAPUNTE IDDESGLOSEO E2 512S2 E3
612S2 E4 712S1
812 912 1012 1112 1212 1312N 1412
3.6. LRIVA.TXT (Record Book Entry. Taxes breakdown. VAT detail. (FE and FR))
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 112 212 312 412 512 612 712
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 812 912 1012 112 212 312 412
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 112 212 312 412 512 612 712
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 812 912 1012 112 212 312 412
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 112 212 312 412 512 612 712
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 812 912 1012 112 212 312 412
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 112 212 312 412 512 612 712
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 812 912 1012 112 212 312 412
3.7. LRCOBRO.TXT (Record Book Entry. Receivables/Payables detail. (CE and PR))
IDLR IDAPUNTE IDCOBRO FECHA 51203 CTAOMEDIO
IDLR IDAPUNTE IDCOBRO FECHA 61204 CTAOMEDIO
IDLR IDAPUNTE IDCOBRO FECHA 51203 CTAOMEDIO
IDLR IDAPUNTE IDCOBRO FECHA 61202 CTAOMEDIO
4. SUPPORTED PARTNERS
Supported partners
5. ASSOCIATED DOCUMENTS
Associated documents