Openbravo Issue Tracking System - Modules
View Issue Details
0048727ModulesIntrastatpublic2022-03-07 13:052022-03-25 14:23
mgonzalezh 
psanjuan 
highmajoralways
closedfixed 
5
 
 
0048727: Intrastat Null Pointer Exception when a Business Partner TaxId is empty
When trying to generate the Intrastat file, if one of the Business Partners included in it does not have information in the TaxId field, a Null Pointer Exception error is displayed and the file is not generated.
1- Create a Business Partner and leave the TaxId field empty.
2- Generate a Sales Invoice with a tax range associated with the Intrastat.
3- Generate and process the Intrastat declaration.
4- Generate the file.
An intuitive error message needs to be shown by informing the user that a given customer (Customer Name) does not have Tax ID info configured.
In English: The value of the Tax ID field is empty for the business partner with Search Key ...
In Spanish: El valor del campo CIF/NIF se encuentra vacĂ­o para el tercero con Identificador ...

No tags attached.
caused by feature request 0047958 closed mgonzalezh New Intrastat File design for Intrastat 2022 
Issue History
2022-03-07 13:05mgonzalezhNew Issue
2022-03-07 13:05mgonzalezhAssigned To => Jorge Bravo
2022-03-07 13:06Jorge BravoAssigned ToJorge Bravo => psanjuan
2022-03-07 13:22mgonzalezhRelationship addedcaused by 0047958
2022-03-22 14:45psanjuanProposed Solution updated
2022-03-22 23:21mgonzalezhProposed Solution updated
2022-03-25 01:03hgbotNote Added: 0136003
2022-03-25 01:04hgbotNote Added: 0136004
2022-03-25 01:05hgbotNote Added: 0136005
2022-03-25 14:22hgbotResolutionopen => fixed
2022-03-25 14:22hgbotStatusnew => closed
2022-03-25 14:22hgbotNote Added: 0136062
2022-03-25 14:22hgbotNote Added: 0136063
2022-03-25 14:22hgbotNote Added: 0136064
2022-03-25 14:22hgbotNote Added: 0136065
2022-03-25 14:23hgbotNote Added: 0136066
2022-03-25 14:23hgbotNote Added: 0136067

Notes
(0136003)
hgbot   
2022-03-25 01:03   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat/-/merge_requests/8 [^]
(0136004)
hgbot   
2022-03-25 01:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat.es_ES/-/merge_requests/3 [^]
(0136005)
hgbot   
2022-03-25 01:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat.spain/-/merge_requests/5 [^]
(0136062)
hgbot   
2022-03-25 14:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat [^]
Changeset: d2a6f0b0aa2791fcda097a554ef3de6af19d3d37
Author: Maykel Gonzalez <maykel.gonzalez@smfconsulting.es>
Date: 24-03-2022 19:01:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat/-/commit/d2a6f0b0aa2791fcda097a554ef3de6af19d3d37 [^]

Fixes ISSUE-48727: Avoid Null Pointer Exception when a Business Partner TaxId is empty

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/intrastat/exception/IntrastatException.java
M src/org/openbravo/module/intrastat/exception/IntrastatExceptionHandler.java
---
(0136063)
hgbot   
2022-03-25 14:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat/-/merge_requests/8 [^]
(0136064)
hgbot   
2022-03-25 14:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat.es_ES [^]
Changeset: f2d968561e42e22de4672218b6c6dc5a7c3530c6
Author: Maykel Gonzalez <maykel.gonzalez@smfconsulting.es>
Date: 24-03-2022 19:03:46
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat.es_ES/-/commit/f2d968561e42e22de4672218b6c6dc5a7c3530c6 [^]

Fixes ISSUE-48727: Avoid Null Pointer Exception when a Business Partner TaxId is empty

---
M referencedata/translation/AD_MESSAGE_TRL_es_ES.xml
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
---
(0136065)
hgbot   
2022-03-25 14:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat.es_ES/-/merge_requests/3 [^]
(0136066)
hgbot   
2022-03-25 14:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat.spain [^]
Changeset: c4526da9aa9845f8919ddc143b7c2cafd56421d0
Author: Maykel Gonzalez <maykel.gonzalez@smfconsulting.es>
Date: 24-03-2022 19:04:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat.spain/-/commit/c4526da9aa9845f8919ddc143b7c2cafd56421d0 [^]

Fixes ISSUE-48727: Avoid Null Pointer Exception when a Business Partner TaxId is empty

---
M src-db/database/sourcedata/AD_MODULE.xml
M src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
M src/org/openbravo/module/intrastat/spain/ProcessAndGenerateIntrastat_Spain.java
---
(0136067)
hgbot   
2022-03-25 14:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.module.intrastat.spain/-/merge_requests/5 [^]