Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0049266Localization Pack: SpainSIIpublic2022-05-09 13:562022-05-23 11:36
psanjuan 
mgonzalezh 
urgentmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
0049266: "Clave NIF Pais de Residencia" update if the error 1103 "Valor del campo IDType Incorrecto" is obtained after sending to SII.
"Clave NIF Pais de Residencia" update if the error 1103 "Valor del campo IDType Incorrecto" is obtained after sending a sales invoice to SII.
Create a BP located in France (or in the United States), by mistake enter the value 1 NIF in the field Clave NIF País de residencia.

Register a sales invoice (Full Invoice) for this BP.

Complete and send it to SII.

Verity that below error is shown.

Error 1103 - Valor del campo IDType incorrecto

See images attached.

Same would apply if a customer located out of the EU is configured with the option 1=NIF
The background process "Correct TaxID Not Identified Error (background)" needs to be renamed as "Correct "Clave NIF País de Residencia" configuration" (Corrección de la configuración de la "Clave NIF País de Residencia")

An additional SQL query needs to be added to this background process, or the existing one can be modified, to add below described business logic (additionaly to what existing:

* if the error found on a sales invoice previously sent to SII is 1103, this process must find the BP associated to that invoice:

** If the "Invoice Address" is located in a EU Country, configured as "Is European Country" = Yes in the "Country and Region" window, and it is NOT Spain (ISO Code = ES), then Clave NiF Pais de Residencia of the BP must be changed to 2 = NOI.

** If the "Invoice Address" is located in another country (not EU Country, and not ES=Spain), then Clave NiF Pais de Residencia of the BP must be changed to 4 = Documento Oficial de identificación expedido por el país.
NOR
related to defect 0049173 closed mgonzalezh El proceso "Correct TaxId Not Identified Error" needs to take into account organizations underneath the one for which it is set 
causes defect 0049509 closed mgonzalezh SII translation can not be installed. 
png Screenshot from 2022-05-09 14-29-59.png (132,489) 2022-05-09 14:30
https://issues.openbravo.com/file_download.php?file_id=16997&type=bug
png
Issue History
2022-05-09 13:56psanjuanNew Issue
2022-05-09 13:56psanjuanAssigned To => Jorge Bravo
2022-05-09 13:57psanjuanAssigned ToJorge Bravo => psanjuan
2022-05-09 14:03psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24047#r24047
2022-05-09 14:03psanjuanProposed Solution updated
2022-05-09 14:19psanjuanFile Added: Screenshot from 2022-05-09 14-19-02.png
2022-05-09 14:21psanjuanFile Deleted: Screenshot from 2022-05-09 14-19-02.png
2022-05-09 14:25psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24048#r24048
2022-05-09 14:25psanjuanProposed Solution updated
2022-05-09 14:28psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24049#r24049
2022-05-09 14:30psanjuanFile Added: Screenshot from 2022-05-09 14-29-59.png
2022-05-09 14:33rafarodaTag Attached: NOR
2022-05-09 14:33psanjuanDescription Updatedbug_revision_view_page.php?rev_id=24051#r24051
2022-05-09 14:33psanjuanProposed Solution updated
2022-05-09 14:34psanjuanRelationship addedrelated to 0049173
2022-05-10 07:30ivancaceresIssue Monitored: ivancaceres
2022-05-11 13:51psanjuanSummary"Clave NIF Pais de Residencia" update => "Clave NIF Pais de Residencia" update if the error 1103 "Valor del campo IDType Incorrecto" is obtained after sending to SII.
2022-05-11 13:51psanjuanDescription Updatedbug_revision_view_page.php?rev_id=24080#r24080
2022-05-11 13:51psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24081#r24081
2022-05-11 13:51psanjuanProposed Solution updated
2022-05-11 13:53psanjuanProposed Solution updated
2022-05-11 13:55psanjuanProposed Solution updated
2022-05-11 14:06psanjuanProposed Solution updated
2022-05-16 13:15psanjuanProposed Solution updated
2022-05-16 13:20psanjuanProposed Solution updated
2022-05-16 13:25psanjuanProposed Solution updated
2022-05-16 13:25psanjuanAssigned Topsanjuan => mgonzalezh
2022-05-16 13:25psanjuanStatusnew => scheduled
2022-05-16 13:28psanjuanProposed Solution updated
2022-05-17 01:58hgbotNote Added: 0137358
2022-05-17 01:58hgbotNote Added: 0137359
2022-05-18 13:07psanjuanNote Added: 0137426
2022-05-18 13:10psanjuanNote Edited: 0137426bug_revision_view_page.php?bugnote_id=0137426#r24109
2022-05-18 13:22psanjuanNote Edited: 0137426bug_revision_view_page.php?bugnote_id=0137426#r24110
2022-05-18 13:27psanjuanNote Edited: 0137426bug_revision_view_page.php?bugnote_id=0137426#r24111
2022-05-18 13:33psanjuanNote Edited: 0137426bug_revision_view_page.php?bugnote_id=0137426#r24112
2022-05-18 14:59psanjuanNote Edited: 0137426bug_revision_view_page.php?bugnote_id=0137426#r24113
2022-05-18 15:50psanjuanNote Edited: 0137426bug_revision_view_page.php?bugnote_id=0137426#r24118
2022-05-23 11:36hgbotResolutionopen => fixed
2022-05-23 11:36hgbotStatusscheduled => closed
2022-05-23 11:36hgbotNote Added: 0137604
2022-05-23 11:36hgbotNote Added: 0137605
2022-05-23 11:36hgbotNote Added: 0137606
2022-05-23 11:36hgbotNote Added: 0137607
2022-05-23 11:36hgbotNote Added: 0137608
2022-06-08 17:45mgonzalezhRelationship addedcauses 0049509

Notes
(0137358)
hgbot   
2022-05-17 01:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/merge_requests/41 [^]
(0137359)
hgbot   
2022-05-17 01:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES/-/merge_requests/3 [^]
(0137426)
psanjuan   
2022-05-18 13:07   
(edited on: 2022-05-18 15:50)
Test plan

1.- Create a BP named "Cliente UE LE" in the Legal Entity organization (that is the one for wich SII is configured). Assign the value "1" in the field, and a Tax ID = FR12456789 . Enter a location of France.
Create a Sales Invoice for this customer and try to send it to SII. Verify that an error is shown saying "Valor del campo IDType incorrecto". Error number 1103


2. Repeat the same test for a BP "Cliente UE Store" created in a store underneath the Legal Entity of test 1, located in Germany and with the Tax ID = . Clave NIF = 1
Create a Sales Invoice for this customer in the store, and try to send it to SII. Verify that the same error is shown saying "Valor del campo IDType incorrecto". Error number 1103

3. Go to Preference window, and create a new one with below setup:
Organization = Legal Entity
Property List = No
Selected = Yes
Attribute = SIIDaysToReviewNotIdentifiedError
Value = 2

4. Go to Process Request window, and launch the process "Correct "Clave NIF País de Residencia" configuration"

5. Verify that the process is executed succesfully and there is a process Log info saying aht 2 business partner successfully updated.

6. Go back to the BP and check that for both of them, the value now is 2 NOI. Send the invoices to SII.

7. Go back to the BP and change them back to 1 NIF

8. Register new sales dated on 5 days ago, and try to send them to SII. Verify that the same error is shown.

9. Once again run the process and verify that no change has been made (as the value of the preference is lower that 5 days). Log info shows 0 business partner sucessfully updted.

10. Go an change the value of the preference to 30 days, for instance.

11. Run the process request once more and verify that the Clave NiF for those customers, now is updated to 2=NOI.

12. Repeat the same test plan for customers located in USA, and verify that Clave NiF is changed to 04 when applies.

(0137604)
hgbot   
2022-05-23 11:36   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii [^]
Changeset: d25bd8623539e8e12e45ca3e7ea0a1cb03bbfd4e
Author: Maykel Gonzalez <maykel.gonzalez@smfconsulting.es>
Date: 16-05-2022 18:55:05
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/commit/d25bd8623539e8e12e45ca3e7ea0a1cb03bbfd4e [^]

Fixed ISSUE-49266: update TaxID if error 1103 is obtained sending to SII

---
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_PROCESS.xml
M src/org/openbravo/module/sii/process/background/CorrectTaxIdNotIdentifiedErrorBackground.java
---
(0137605)
hgbot   
2022-05-23 11:36   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii/-/merge_requests/41 [^]
(0137606)
hgbot   
2022-05-23 11:36   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES [^]
Changeset: e4034314d5c467d598857749566f5d6bea9a744b
Author: Maykel Gonzalez <maykel.gonzalez@smfconsulting.es>
Date: 16-05-2022 18:57:06
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES/-/commit/e4034314d5c467d598857749566f5d6bea9a744b [^]

Fixed ISSUE-49266: update TaxID if error 1103 is obtained sending to SII

---
M referencedata/translation/es_ES/AD_PROCESS_TRL_es_ES.xml
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
---
(0137607)
hgbot   
2022-05-23 11:36   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES [^]
Changeset: 584748ea371d11b4316ccb800ca50dbd8f0ca3d8
Author: Maykel Gonzalez <maykel.gonzalez@smfconsulting.es>
Date: 17-05-2022 06:13:33
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES/-/commit/584748ea371d11b4316ccb800ca50dbd8f0ca3d8 [^]

Fixed ISSUE-49266: upgrade module version

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0137608)
hgbot   
2022-05-23 11:36   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.sii.es_ES/-/merge_requests/3 [^]