Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0045616Localization Pack: SpainSIIpublic2020-12-17 10:102021-01-14 10:37
psanjuan 
juabaez 
urgentmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
0045616: Error - operaciones IGIC no se pueden enviar a SII
Error - operaciones IGIC no se pueden enviar a SII
Crear una factura de compra a un proveedor Canario.
En las lineas de la factura, crear dos registros uno con el tax "Adquisiciones IGIC 9,5%, por ejemplo y otra línea con el tax "Prestación Servicios en Canarias 9,5%".
Incluir la descripción de SII y la referencia de factura del proveedor.
Completar la factura
Enviar al SII.

Se muestra el siguiente error. Ver imagenes adjuntas.
No tags attached.
jpg error_45616.jpg (76,359) 2020-12-17 10:11
https://issues.openbravo.com/file_download.php?file_id=15179&type=bug
jpg

xml 10000064_Envio1610462124607.xml (1,648) 2021-01-12 15:39
https://issues.openbravo.com/file_download.php?file_id=15236&type=bug
Issue History
2020-12-17 10:10psanjuanNew Issue
2020-12-17 10:10psanjuanAssigned To => Jorge Bravo
2020-12-17 10:11psanjuanFile Added: error_45616.jpg
2020-12-17 10:16psanjuanNote Added: 0124894
2020-12-17 10:18psanjuanNote Edited: 0124894bug_revision_view_page.php?bugnote_id=0124894#r21949
2020-12-18 12:57Jorge BravoAssigned ToJorge Bravo => juabaez
2020-12-23 12:40hgbotNote Added: 0125061
2020-12-23 13:26juabaezNote Added: 0125064
2020-12-23 13:26juabaezStatusnew => scheduled
2020-12-28 08:08hgbotNote Added: 0125098
2020-12-28 08:08hgbotNote Added: 0125099
2020-12-28 12:15vmromanosStatusscheduled => resolved
2020-12-28 12:15vmromanosResolutionopen => fixed
2020-12-28 12:15vmromanosStatusresolved => closed
2021-01-12 12:52Alberto_SolaIssue Monitored: Alberto_Sola
2021-01-12 13:34psanjuanNote Added: 0125387
2021-01-12 13:34psanjuanStatusclosed => new
2021-01-12 13:35psanjuanNote Edited: 0125387bug_revision_view_page.php?bugnote_id=0125387#r22025
2021-01-12 13:36psanjuanNote Edited: 0125387bug_revision_view_page.php?bugnote_id=0125387#r22026
2021-01-12 15:39Jorge BravoFile Added: 10000064_Envio1610462124607.xml
2021-01-12 15:42Jorge BravoNote Added: 0125396
2021-01-14 10:37psanjuanNote Edited: 0125396bug_revision_view_page.php?bugnote_id=0125396#r22035
2021-01-14 10:37psanjuanNote Added: 0125454
2021-01-14 10:37psanjuanStatusnew => scheduled
2021-01-14 10:37psanjuanStatusscheduled => resolved
2021-01-14 10:37psanjuanStatusresolved => closed

Notes
(0124894)
psanjuan   
2020-12-17 10:16   
(edited on: 2020-12-17 10:18)
Por favor comprobar si el XML que se genera incluye además la cuota y el impuesto. No debería ser asi, sólo se debería incluir la Base Imponible para operaciones de tipo 08 Operacion sujeta a IPSI/IGIC.

Además el campo o tag del XML IVA Deducible tiene que ser cero.

(0125061)
hgbot   
2020-12-23 12:40   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/merge_requests/8 [^]
(0125064)
juabaez   
2020-12-23 13:26   
Test plan:

- Log in environment with SII
- Create a purchase invoice in Spain organization
- The partner addres for example should be Canary Islands
- Insert a line with any product and tax Prestación servicios en Canarias 9.5%
- Insert a second line with any product and tax Adquisiciones IGIC 9.5%
- Send to SII
- See in the XML when tag ClaveRegimenEspecialOTrascendencia is 08 then tags TipoImpositivo and CuotaSoportada should be without amounts and empty.
- Also See in the XML tag CuotaDeducible should be zero
(0125098)
hgbot   
2020-12-28 08:08   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii [^]
Changeset: fc8aa98b9b0c0238ebba1fb9ad437b5878568184
Author: Juan Baez <juan.baez@smfconsulting.es>
Date: 2020-12-28T07:08:27+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/commit/fc8aa98b9b0c0238ebba1fb9ad437b5878568184 [^]

Fix ISSUE-45616 Remove amounts in XML tags

The tags without amount are TipoImpositivo y CuotaSoportada for tax rate IPSI/IGIC and tag CuotaDeducible is zero.

Create a new method to search the tag in xml generated previously. The new parameter is type of SOAPElement and calculate the value from the xml inside method createDetalleIVA, so the method has the full object with all the available information, that might be necessary in the future

---
M src/org/openbravo/module/sii/utils/SIISOAPUtils.java
---
(0125099)
hgbot   
2020-12-28 08:08   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/merge_requests/8 [^]
(0125387)
psanjuan   
2021-01-12 13:34   
(edited on: 2021-01-12 13:36)
Reabro el issue ya que la resolución no es correcta.
Los tags de abajo no deben aparecer en el XML
<sii:TipoImpositivo>0.00</sii:TipoImpositivo>
<sii:CuotaSoportada>0.00</sii:CuotaSoportada>

solo:
<sii:BaseImponible>205.90</sii:BaseImponible>

<sii:CuotaDeducible>0.00</sii:CuotaDeducible>

Por favor, indicar un test plan completo, junto con los ficheros XML correspondientes.

(0125396)
Jorge Bravo   
2021-01-12 15:42   
(edited on: 2021-01-14 10:37)
Test plan:
1º Crear factura de una organización con dirección peninsula y un proveedor con dirección Canarias.
2º Registrar 2 líneas con productos cuyos rangos de impuestos son de IGIC
3º Dar de alta SII
4º Comprobar y revisar envio fichero xml (ver fichero adjunto)

(0125454)
psanjuan   
2021-01-14 10:37   
Cierro issue ya que no se puede reproducir.