Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046053 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Localization Pack: Spain] SII | minor | always | 2021-03-11 15:03 | 2021-04-26 10:25 | |||
Reporter | ivancaceres | View Status | public | |||||
Assigned To | juabaez | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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). | |||||||
Tags | NOR | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0126699) psanjuan (viewer) 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 (developer) 2021-03-17 20:08 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/merge_requests/15 [^] |
(0126765) juabaez (viewer) 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 (viewer) 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> |
(0126825) psanjuan (viewer) 2021-03-22 12:25 |
Este issue se puede cerrar. |
(0126827) hgbot (developer) 2021-03-22 12:54 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii [^] Changeset: 0399e938e874bfa42a3399449476dbd47850653a Author: Juan Baez <juabaez@gmail.com> Date: 2021-03-17T14:46:21-03:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/commit/0399e938e874bfa42a3399449476dbd47850653a [^] Fixed ISSUE-46053 change in xml generation to send SII in some business partner When business partner have NIF and start with N then the xml should be generated with xml tag DesgloseTipoOperacion and inside should be have xml tag PrestacionServicios or Entrega depends of product or both --- M src/org/openbravo/module/sii/invoicefiles/FacturaExpedida.java M src/org/openbravo/module/sii/utils/SIISOAPUtils.java --- |
(0126828) hgbot (developer) 2021-03-22 12:54 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii [^] Changeset: 738428cf189b57844d2c41aa32aab8eb2a16cd30 Author: Juan Baez <juabaez@gmail.com> Date: 2021-03-17T15:09:14-03:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/commit/738428cf189b57844d2c41aa32aab8eb2a16cd30 [^] Fixed ISSUE-46053 update module version and update info --- M src-db/database/sourcedata/AD_MODULE.xml --- |
(0126829) hgbot (developer) 2021-03-22 12:54 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii [^] Changeset: 174700b951dd47840bfc19c10b0e28491066fcb4 Author: Juan Baez <juabaez@gmail.com> Date: 2021-03-18T09:31:48-03:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/commit/174700b951dd47840bfc19c10b0e28491066fcb4 [^] Fixed ISSUE-46053 change method to check if a tax as a services change copyright year in class SIISOAPUtils --- M src/org/openbravo/module/sii/invoicefiles/FacturaExpedida.java M src/org/openbravo/module/sii/utils/SIISOAPUtils.java --- |
(0126830) hgbot (developer) 2021-03-22 12:54 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/merge_requests/15 [^] |
![]() |
|||
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 | View Revisions |
2021-03-15 10:51 | psanjuan | Note Edited: 0126699 | View Revisions |
2021-03-15 10:54 | psanjuan | Note Edited: 0126699 | View Revisions |
2021-03-15 10:55 | psanjuan | Note Edited: 0126699 | View Revisions |
2021-03-15 10:56 | psanjuan | Note Edited: 0126699 | View Revisions |
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 | View Revisions |
2021-03-22 12:12 | psanjuan | Note Added: 0126824 | |
2021-03-22 12:13 | psanjuan | Note Edited: 0126824 | View Revisions |
2021-03-22 12:18 | psanjuan | Note Edited: 0126824 | View Revisions |
2021-03-22 12:20 | psanjuan | Note Edited: 0126824 | View Revisions |
2021-03-22 12:24 | psanjuan | Note Edited: 0126824 | View Revisions |
2021-03-22 12:25 | psanjuan | Note Added: 0126825 | |
2021-03-22 12:27 | psanjuan | Note Edited: 0126824 | View Revisions |
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 |
Copyright © 2000 - 2009 MantisBT Group |