Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0050064Localization Pack: SpainSIIpublic2022-08-25 13:072024-01-31 21:35
psanjuan 
 
urgentmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
0050064: When an Invoice have all the lines related to products configured as "No declarable", the invoice remains in Sending Error.
When a Sales or a Purchase Invoice have all the lines related to products configured as "No declarable", the invoice remains in Sending Error.

https://openbravo.atlassian.net/browse/RM-7042 [^]
Go to Sales Invoice window and create a new sale for a national customer, including a product related to a tax rate/tax category configured as "No declarable SII".

Complete it.

If the "SII sending process" is scheduled and executed, that sales invoice will remain with an status "Sending Error", therefore it will be shown in the SII monitor forever.

Same applies to Purchase Invoices (Employee expenses)
"Grouped Invoices SII Sending" process must change the "SII Registration Status" to a new status named "No declarable en SII" if an invoice (sales or purchase) includes only and all its lines of products related with a tax rate linked to tax category configured as "NO declarable SII".

Besides that, those Sales Invoices with an status "No Declarable SII" must not be shown in the SII Monitor ever.

Nombre del estado en español "No declarable en SII"
Nombre del estado en inglés "Not reportable to SII"
NOR
depends on defect 0054037 closed rdanielle Error al enviar SII en modo test 
Issue History
2022-08-25 13:07psanjuanNew Issue
2022-08-25 13:07psanjuanAssigned To => Jorge Bravo
2022-08-25 13:14psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24669#r24669
2022-08-25 13:14psanjuanProposed Solution updated
2022-08-25 14:35rafarodaTag Attached: NOR
2022-08-30 09:53Jorge BravoAssigned ToJorge Bravo => mgonzalezh
2022-08-31 09:25psanjuanProposed Solution updated
2022-08-31 09:25psanjuanNote Added: 0140543
2022-08-31 13:03psanjuanNote Edited: 0140543bug_revision_view_page.php?bugnote_id=0140543#r24698
2022-08-31 13:05psanjuanNote Edited: 0140543bug_revision_view_page.php?bugnote_id=0140543#r24699
2022-08-31 13:07psanjuanNote Edited: 0140543bug_revision_view_page.php?bugnote_id=0140543#r24700
2022-08-31 13:55psanjuanSummaryWhen a Sales Invoice have all the lines related to products configured as "No declarable", the invoice remains in Sending Error. => When an Invoice have all the lines related to products configured as "No declarable", the invoice remains in Sending Error.
2022-08-31 13:55psanjuanDescription Updatedbug_revision_view_page.php?rev_id=24702#r24702
2022-08-31 13:55psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24703#r24703
2022-08-31 13:55psanjuanProposed Solution updated
2022-08-31 13:56psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24704#r24704
2023-09-04 10:52psanjuanTypedefect => design defect
2023-09-14 13:20Jorge BravoProposed Solution updated
2023-09-29 15:12hgbotNote Added: 0155391
2023-10-02 18:01aferrazAssigned Tomgonzalezh =>
2023-10-02 18:01aferrazDescription Updatedbug_revision_view_page.php?rev_id=26922#r26922
2023-10-03 14:26hgbotNote Added: 0155425
2023-10-03 18:58hgbotNote Added: 0155430
2023-11-27 18:55psanjuanRelationship addeddepends on 0054037
2024-01-17 18:47hgbotNote Added: 0159428
2024-01-31 21:33hgbotResolutionopen => fixed
2024-01-31 21:33hgbotStatusnew => closed
2024-01-31 21:33hgbotNote Added: 0160033
2024-01-31 21:33hgbotNote Added: 0160034
2024-01-31 21:35hgbotNote Added: 0160035
2024-01-31 21:35hgbotNote Added: 0160036

Notes
(0140543)
psanjuan   
2022-08-31 09:25   
(edited on: 2022-08-31 13:07)
El envío al SII, se realiza desde el proceso "Grouped Invoices SII Sending", y también desde los botones de "Send to SII" de las ventanas "Sales Invoice" y "SII Monitor", ambos botones ejecutan el mismo proceso, el "SII Invoice Sender".

Tanto en el proceso "Grouped Invoices SII Sending", como el proceso "SII Invoice Sender", se deben agregar lo siguiente:

Actualizar el estado de estas facturas al nuevo estado al que se creará ("No Declarable SII"), una vez hayan sido procesadas.

Propongo, para no duplicar código, utilizar algún Utils (ej: org.openbravo.module.sii.utils.SIIUtils), para identificar y marcar estas facturas.

Al ser una clase con métodos públicos, todos ellos deben tener su javadoc.

Por último, modificar el SII Monitor para que nunca muestre las facturas con este nuevo estado.

(0155391)
hgbot   
2023-09-29 15:12   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES/-/merge_requests/6 [^]
(0155425)
hgbot   
2023-10-03 14:26   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.template/-/merge_requests/4 [^]
(0155430)
hgbot   
2023-10-03 18:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/merge_requests/48 [^]
(0159428)
hgbot   
2024-01-17 18:47   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.template/-/merge_requests/4 [^]
(0160033)
hgbot   
2024-01-31 21:33   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii [^]
Changeset: f8d0925cfb07c6ac3d7618c11f577fa4fcc2711d
Author: Ruben Danielle <ruben.danielle@smfconsulting.es>
Date: 31-01-2024 20:33:50
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/commit/f8d0925cfb07c6ac3d7618c11f577fa4fcc2711d [^]

Fixes ISSUE-50064: When an Invoice have all the lines related to products configured as "No declarable", the invoice remains in Sending Error.

---
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/AD_TAB.xml
M src/org/openbravo/module/sii/process/MultiEnvioFactura.java
M src/org/openbravo/module/sii/process/background/SendInvoicesGroupsToAEAT.java
M src/org/openbravo/module/sii/utils/SIIUtils.java
---
(0160034)
hgbot   
2024-01-31 21:33   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/merge_requests/48 [^]
(0160035)
hgbot   
2024-01-31 21:35   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES/-/merge_requests/6 [^]
(0160036)
hgbot   
2024-01-31 21:35   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES [^]
Changeset: e53c657df5ed167a8c744f3d07cfc26562d9a04d
Author: Ruben Danielle <ruben.danielle@smfconsulting.es>
Date: 31-01-2024 20:35:04
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES/-/commit/e53c657df5ed167a8c744f3d07cfc26562d9a04d [^]

Fixes ISSUE-50064: When an Invoice have all the lines related to products configured as "No declarable", the invoice remains in Sending Error.

---
M referencedata/translation/es_ES/AD_REF_LIST_TRL_es_ES.xml
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
---