Openbravo Issue Tracking System - Localization Pack: Spain |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0046053 | Localization Pack: Spain | SII | public | 2021-03-11 15:03 | 2021-04-26 10:25 |
|
Reporter | ivancaceres | |
Assigned To | juabaez | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | approved |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | |
Support ticket | |
OBNetwork customer | No |
Regression introduced in release | |
|
Summary | 0046053: Factura enviada con errores cuando el NIF empieza por N |
Description | Al enviar facturas al sii de venta cuando el tercero tiene un nif que empieza por N, la factura es aceptada por la AEAT pero con el siguiente error:
"La factura contiene un desglose a nivel de factura cuando le corresponde un desglose a nivel de operación, por no ser factura simplificada ni asiento resumen y la contraparte contiene un IdOtro o tiene un NIF que empiece por N" |
Steps To Reproduce | 1 - Crear un tercero con un NIF que empiece por N
2 - Crear una factura de venta con impuesto Servicios prestados nacional 21%
3 - Enviar al SII la factura |
Proposed Solution | Añadir al código:
if (!flagDesgloseOperacion) {
if (invoice.getBusinessPartner().getTaxID().startsWith("N")) {
flagDesgloseOperacion = true;
}
}
Añadir de alguna forma que sea de tipo NIF (evitar un NOI u otro tipo que pueda empezar por N).
|
Additional Information | |
Tags | NOR |
Relationships | |
Attached Files | FacturaExpedida.java (53,216) 2021-03-15 11:47 https://issues.openbravo.com/file_download.php?file_id=15418&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2021-03-11 15:03 | ivancaceres | New Issue | |
2021-03-11 15:03 | ivancaceres | Assigned To | => Jorge Bravo |
2021-03-11 15:03 | ivancaceres | File Added: FacturaExpedida.java | |
2021-03-15 10:33 | psanjuan | OBNetwork customer | => No |
2021-03-15 10:33 | psanjuan | Note Added: 0126699 | |
2021-03-15 10:36 | psanjuan | Note Edited: 0126699 | bug_revision_view_page.php?bugnote_id=0126699#r22213 |
2021-03-15 10:51 | psanjuan | Note Edited: 0126699 | bug_revision_view_page.php?bugnote_id=0126699#r22214 |
2021-03-15 10:54 | psanjuan | Note Edited: 0126699 | bug_revision_view_page.php?bugnote_id=0126699#r22215 |
2021-03-15 10:55 | psanjuan | Note Edited: 0126699 | bug_revision_view_page.php?bugnote_id=0126699#r22216 |
2021-03-15 10:56 | psanjuan | Note Edited: 0126699 | bug_revision_view_page.php?bugnote_id=0126699#r22217 |
2021-03-15 11:25 | psanjuan | Proposed Solution updated | |
2021-03-15 11:44 | Jorge Bravo | Assigned To | Jorge Bravo => juabaez |
2021-03-15 11:46 | psanjuan | File Deleted: FacturaExpedida.java | |
2021-03-15 11:47 | psanjuan | File Added: FacturaExpedida.java | |
2021-03-15 20:42 | juabaez | Status | new => scheduled |
2021-03-17 20:08 | hgbot | Merge Request Status | => open |
2021-03-17 20:08 | hgbot | Note Added: 0126764 | |
2021-03-17 20:09 | juabaez | Note Added: 0126765 | |
2021-03-17 20:13 | juabaez | Note Edited: 0126765 | bug_revision_view_page.php?bugnote_id=0126765#r22233 |
2021-03-22 12:12 | psanjuan | Note Added: 0126824 | |
2021-03-22 12:13 | psanjuan | Note Edited: 0126824 | bug_revision_view_page.php?bugnote_id=0126824#r22237 |
2021-03-22 12:18 | psanjuan | Note Edited: 0126824 | bug_revision_view_page.php?bugnote_id=0126824#r22238 |
2021-03-22 12:20 | psanjuan | Note Edited: 0126824 | bug_revision_view_page.php?bugnote_id=0126824#r22239 |
2021-03-22 12:24 | psanjuan | Note Edited: 0126824 | bug_revision_view_page.php?bugnote_id=0126824#r22240 |
2021-03-22 12:25 | psanjuan | Note Added: 0126825 | |
2021-03-22 12:27 | psanjuan | Note Edited: 0126824 | bug_revision_view_page.php?bugnote_id=0126824#r22241 |
2021-03-22 12:53 | hgbot | Merge Request Status | open => approved |
2021-03-22 12:54 | hgbot | Resolution | open => fixed |
2021-03-22 12:54 | hgbot | Status | scheduled => closed |
2021-03-22 12:54 | hgbot | Note Added: 0126827 | |
2021-03-22 12:54 | hgbot | Note Added: 0126828 | |
2021-03-22 12:54 | hgbot | Note Added: 0126829 | |
2021-03-22 12:54 | hgbot | Note Added: 0126830 | |
2021-04-26 10:25 | rafaroda | Tag Attached: NOR | |
Notes |
|
(0126699)
|
psanjuan
|
2021-03-15 10:33
(edited on: 2021-03-15 10:56) |
|
See proposed solution below: (in Spanish)
Tercero con NiF que comienza con N se aplica lo siguiente: si la factura que registra tiene un cliente extranjero (se cumplimenta bloque "IDOtro" o el NIF empieza por N) y además, no es una factura simplificada ni un asiento resumen, deberá indicar si la operación que documenta la factura es una entrega de bienes o una pretsación de servicios:
Para este tipo de operaciones (Tercero con NIF que empieza con N), en el caso de entrega de bienes, se debe deglosar por tipo de operación (entrega):
<sii:DesgloseTipoOperacion>
<sii:Entrega>
<sii:Sujeta>
<sii:NoExenta>
<sii:TipoNoExenta>S1</sii:TipoNoExenta>
<sii:DesgloseIVA>
<sii:DetalleIVA>
<sii:TipoImpositivo>21.00</sii:TipoImpositivo>
<sii:BaseImponible>2.98</sii:BaseImponible>
<sii:CuotaRepercutida>0.62</sii:CuotaRepercutida>
</sii:DetalleIVA>
</sii:DesgloseIVA>
</sii:NoExenta>
</sii:Sujeta>
</sii:Entrega>
</sii:DesgloseTipoOperacion>
Para este tipo de operaciones (Tercero con NIF que empieza con N), en el caso de prestación de servicios, se debe deglosar por tipo de operación (prestación de servicios):
<sii:TipoDesglose>
<sii:DesgloseTipoOperacion>
<sii:PrestacionServicios>
<sii:Sujeta>
<sii:NoExenta>
<sii:TipoNoExenta>S1</sii:TipoNoExenta>
<sii:DesgloseIVA>
<sii:DetalleIVA>
<sii:TipoImpositivo>21.00</sii:TipoImpositivo>
<sii:BaseImponible>2.98</sii:BaseImponible>
<sii:CuotaRepercutida>0.62</sii:CuotaRepercutida>
</sii:DetalleIVA>
</sii:DesgloseIVA>
</sii:NoExenta>
</sii:Sujeta>
</sii:PrestacionServicios>
</sii:DesgloseTipoOperacion>
Ver https://www.agenciatributaria.es/static_files/Sede/Procedimiento_ayuda/G417/FicherosSuministros/V_1_1/Validaciones_ErroresSII_v1.1.pdf [^]
|
|
|
(0126764)
|
hgbot
|
2021-03-17 20:08
|
|
|
|
(0126765)
|
juabaez
|
2021-03-17 20:09
(edited on: 2021-03-17 20:13) |
|
Test Plan
- Create a sales invoice
- add a line with a product and tax rate "Entregas IVA 21%"
- Complete and send to SII
- See in SII Data tab status is "Correcto"
- Download the xml sent and the correct structure should be
<sii:DesgloseTipoOperacion>
<sii:Entrega>
<sii:Sujeta>
<sii:NoExenta>
<sii:TipoNoExenta>S1</sii:TipoNoExenta>
<sii:DesgloseIVA>
<sii:DetalleIVA>
<sii:TipoImpositivo>21.00</sii:TipoImpositivo>
<sii:BaseImponible>2.98</sii:BaseImponible>
<sii:CuotaRepercutida>0.62</sii:CuotaRepercutida>
</sii:DetalleIVA>
</sii:DesgloseIVA>
</sii:NoExenta>
</sii:Sujeta>
</sii:Entrega>
</sii:DesgloseTipoOperacion>
Test Plan 2
- Create a sales invoice
- add a line with a product as a services and tax rate "Servicios prestados nacional 21%"
- Complete and send to SII
- See in SII Data tab status is "Correcto"
- Download the xml sent and the correct structure should be
<sii:DesgloseTipoOperacion>
<sii:PrestacionServicios>
<sii:Sujeta>
<sii:NoExenta>
<sii:TipoNoExenta>S1</sii:TipoNoExenta>
<sii:DesgloseIVA>
<sii:DetalleIVA>
<sii:TipoImpositivo>21.00</sii:TipoImpositivo>
<sii:BaseImponible>2.98</sii:BaseImponible>
<sii:CuotaRepercutida>0.62</sii:CuotaRepercutida>
</sii:DetalleIVA>
</sii:DesgloseIVA>
</sii:NoExenta>
</sii:Sujeta>
</sii:PrestacionServicios>
</sii:DesgloseTipoOperacion>
Test Plan 3
- Create a sales invoice
- add a line with a product and tax rate "Entregas IVA 21%"
- add a line with a product as a services and tax rate "Servicios prestados nacional 21%"
- Complete and send to SII
- See in SII Data tab status is "Correcto"
- Download the xml sent and the correct structure should be
<sii:DesgloseTipoOperacion>
<sii:PrestacionServicios>
<sii:Sujeta>
<sii:NoExenta>
<sii:TipoNoExenta>S1</sii:TipoNoExenta>
<sii:DesgloseIVA>
<sii:DetalleIVA>
<sii:TipoImpositivo>21.00</sii:TipoImpositivo>
<sii:BaseImponible>2.98</sii:BaseImponible>
<sii:CuotaRepercutida>0.62</sii:CuotaRepercutida>
</sii:DetalleIVA>
</sii:DesgloseIVA>
</sii:NoExenta>
</sii:Sujeta>
</sii:PrestacionServicios>
<sii:Entrega>
<sii:Sujeta>
<sii:NoExenta>
<sii:TipoNoExenta>S1</sii:TipoNoExenta>
<sii:DesgloseIVA>
<sii:DetalleIVA>
<sii:TipoImpositivo>21.00</sii:TipoImpositivo>
<sii:BaseImponible>2.98</sii:BaseImponible>
<sii:CuotaRepercutida>0.62</sii:CuotaRepercutida>
</sii:DetalleIVA>
</sii:DesgloseIVA>
</sii:NoExenta>
</sii:Sujeta>
</sii:Entrega>
</sii:DesgloseTipoOperacion>
|
|
|
(0126824)
|
psanjuan
|
2021-03-22 12:12
(edited on: 2021-03-22 12:27) |
|
Test adicional:
1. Operaciones de venta a terceros nacionales con un NiF que no empiece por N, de facturas de venta con productos y servicios, mismos tipos impositivos. El desglose no debe ser por Factura. Comprobar envio a SII. Correcto.
<sii:TipoDesglose>
<sii:DesgloseFactura>
<sii:Sujeta>
<sii:NoExenta>
<sii:TipoNoExenta>S1</sii:TipoNoExenta>
<sii:DesgloseIVA>
<sii:DetalleIVA>
<sii:TipoImpositivo>21.00</sii:TipoImpositivo>
<sii:BaseImponible>708.68</sii:BaseImponible>
<sii:CuotaRepercutida>148.82</sii:CuotaRepercutida>
</sii:DetalleIVA>
</sii:DesgloseIVA>
</sii:NoExenta>
</sii:Sujeta>
</sii:DesgloseFactura>
2. Operaciones intracomunitarias con tipo de ID 2 = NOI - Desglose por operación. tipos Entregas intracomunitarias (%N=>0%) y Servicios prestados UE (%N=>0%). Comprobar envio a SII. Correcto.
sii:Contraparte>
<sii:NombreRazon>Cliente Intracomunitario</sii:NombreRazon>
<sii:IDOtro>
<sii:CodigoPais>DE</sii:CodigoPais>
<sii:IDType>02</sii:IDType>
<sii:ID>DE812871812</sii:ID>
</sii:IDOtro>
</sii:Contraparte>
<sii:TipoDesglose>
<sii:DesgloseTipoOperacion>
<sii:PrestacionServicios>
<sii:NoSujeta>
<sii:ImporteTAIReglasLocalizacion>12.50</sii:ImporteTAIReglasLocalizacion>
</sii:NoSujeta>
</sii:PrestacionServicios>
<sii:Entrega>
<sii:Sujeta>
<sii:Exenta>
<sii:DetalleExenta>
<sii:CausaExencion>E5</sii:CausaExencion>
<sii:BaseImponible>338.00</sii:BaseImponible>
</sii:DetalleExenta>
</sii:Exenta>
</sii:Sujeta>
</sii:Entrega>
</sii:DesgloseTipoOperacion>
</sii:TipoDesglose>
3. Operaciones de exportación con tipo de ID 3,4,5 o 6 - Desglose por operación, tipos Exportaciones (%N=>0%) y Servicios prestados internacional (%N=>0%) . Comprobar envio a SII. Correcto.
<sii:Contraparte>
<sii:NombreRazon>Cliente Extranjero</sii:NombreRazon>
<sii:IDOtro>
<sii:CodigoPais>IN</sii:CodigoPais>
<sii:IDType>06</sii:IDType>
<sii:ID>056200256</sii:ID>
</sii:IDOtro>
</sii:Contraparte>
<sii:TipoDesglose>
<sii:DesgloseTipoOperacion>
<sii:PrestacionServicios>
<sii:NoSujeta>
<sii:ImporteTAIReglasLocalizacion>12.50</sii:ImporteTAIReglasLocalizacion>
</sii:NoSujeta>
</sii:PrestacionServicios>
<sii:Entrega>
<sii:Sujeta>
<sii:Exenta>
<sii:DetalleExenta>
<sii:CausaExencion>E2</sii:CausaExencion>
<sii:BaseImponible>169.00</sii:BaseImponible>
</sii:DetalleExenta>
</sii:Exenta>
</sii:Sujeta>
</sii:Entrega>
</sii:DesgloseTipoOperacion>
</sii:TipoDesglose>
|
|
|
|
Este issue se puede cerrar. |
|
|
(0126827)
|
hgbot
|
2021-03-22 12:54
|
|
|
|
(0126828)
|
hgbot
|
2021-03-22 12:54
|
|
|
|
(0126829)
|
hgbot
|
2021-03-22 12:54
|
|
|
|
(0126830)
|
hgbot
|
2021-03-22 12:54
|
|
|