Openbravo Issue Tracking System - Localization Pack: Spain |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0049266 | Localization Pack: Spain | SII | public | 2022-05-09 13:56 | 2022-05-23 11:36 |
|
Reporter | psanjuan | |
Assigned To | mgonzalezh | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | Openbravo Appliance 14.04 |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0049266: "Clave NIF Pais de Residencia" update if the error 1103 "Valor del campo IDType Incorrecto" is obtained after sending to SII. |
Description | "Clave NIF Pais de Residencia" update if the error 1103 "Valor del campo IDType Incorrecto" is obtained after sending a sales invoice to SII. |
Steps To Reproduce | 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
|
Proposed Solution | 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.
|
Additional Information | |
Tags | NOR |
Relationships | 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. |
|
Attached Files | 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
|
|
Issue History |
Date Modified | Username | Field | Change |
2022-05-09 13:56 | psanjuan | New Issue | |
2022-05-09 13:56 | psanjuan | Assigned To | => Jorge Bravo |
2022-05-09 13:57 | psanjuan | Assigned To | Jorge Bravo => psanjuan |
2022-05-09 14:03 | psanjuan | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24047#r24047 |
2022-05-09 14:03 | psanjuan | Proposed Solution updated | |
2022-05-09 14:19 | psanjuan | File Added: Screenshot from 2022-05-09 14-19-02.png | |
2022-05-09 14:21 | psanjuan | File Deleted: Screenshot from 2022-05-09 14-19-02.png | |
2022-05-09 14:25 | psanjuan | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24048#r24048 |
2022-05-09 14:25 | psanjuan | Proposed Solution updated | |
2022-05-09 14:28 | psanjuan | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24049#r24049 |
2022-05-09 14:30 | psanjuan | File Added: Screenshot from 2022-05-09 14-29-59.png | |
2022-05-09 14:33 | rafaroda | Tag Attached: NOR | |
2022-05-09 14:33 | psanjuan | Description Updated | bug_revision_view_page.php?rev_id=24051#r24051 |
2022-05-09 14:33 | psanjuan | Proposed Solution updated | |
2022-05-09 14:34 | psanjuan | Relationship added | related to 0049173 |
2022-05-10 07:30 | ivancaceres | Issue Monitored: ivancaceres | |
2022-05-11 13:51 | psanjuan | Summary | "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:51 | psanjuan | Description Updated | bug_revision_view_page.php?rev_id=24080#r24080 |
2022-05-11 13:51 | psanjuan | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=24081#r24081 |
2022-05-11 13:51 | psanjuan | Proposed Solution updated | |
2022-05-11 13:53 | psanjuan | Proposed Solution updated | |
2022-05-11 13:55 | psanjuan | Proposed Solution updated | |
2022-05-11 14:06 | psanjuan | Proposed Solution updated | |
2022-05-16 13:15 | psanjuan | Proposed Solution updated | |
2022-05-16 13:20 | psanjuan | Proposed Solution updated | |
2022-05-16 13:25 | psanjuan | Proposed Solution updated | |
2022-05-16 13:25 | psanjuan | Assigned To | psanjuan => mgonzalezh |
2022-05-16 13:25 | psanjuan | Status | new => scheduled |
2022-05-16 13:28 | psanjuan | Proposed Solution updated | |
2022-05-17 01:58 | hgbot | Note Added: 0137358 | |
2022-05-17 01:58 | hgbot | Note Added: 0137359 | |
2022-05-18 13:07 | psanjuan | Note Added: 0137426 | |
2022-05-18 13:10 | psanjuan | Note Edited: 0137426 | bug_revision_view_page.php?bugnote_id=0137426#r24109 |
2022-05-18 13:22 | psanjuan | Note Edited: 0137426 | bug_revision_view_page.php?bugnote_id=0137426#r24110 |
2022-05-18 13:27 | psanjuan | Note Edited: 0137426 | bug_revision_view_page.php?bugnote_id=0137426#r24111 |
2022-05-18 13:33 | psanjuan | Note Edited: 0137426 | bug_revision_view_page.php?bugnote_id=0137426#r24112 |
2022-05-18 14:59 | psanjuan | Note Edited: 0137426 | bug_revision_view_page.php?bugnote_id=0137426#r24113 |
2022-05-18 15:50 | psanjuan | Note Edited: 0137426 | bug_revision_view_page.php?bugnote_id=0137426#r24118 |
2022-05-23 11:36 | hgbot | Resolution | open => fixed |
2022-05-23 11:36 | hgbot | Status | scheduled => closed |
2022-05-23 11:36 | hgbot | Note Added: 0137604 | |
2022-05-23 11:36 | hgbot | Note Added: 0137605 | |
2022-05-23 11:36 | hgbot | Note Added: 0137606 | |
2022-05-23 11:36 | hgbot | Note Added: 0137607 | |
2022-05-23 11:36 | hgbot | Note Added: 0137608 | |
2022-06-08 17:45 | mgonzalezh | Relationship added | causes 0049509 |
Notes |
|
(0137358)
|
hgbot
|
2022-05-17 01:58
|
|
|
|
(0137359)
|
hgbot
|
2022-05-17 01:58
|
|
|
|
(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
|
|
|
|
(0137605)
|
hgbot
|
2022-05-23 11:36
|
|
|
|
(0137606)
|
hgbot
|
2022-05-23 11:36
|
|
|
|
(0137607)
|
hgbot
|
2022-05-23 11:36
|
|
|
|
(0137608)
|
hgbot
|
2022-05-23 11:36
|
|
|