Openbravo Issue Tracking System - Openbravo ERP | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0042495 | Openbravo ERP | 09. Financial management | public | 2019-12-09 22:31 | 2019-12-26 15:16 |
| Reporter | matias-bernal | ||||
| Assigned To | AtulOpenbravo | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | scheduled | Resolution | open | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | pi | ||||
| Target Version | Fixed in Version | ||||
| Merge Request Status | |||||
| Review Assigned To | |||||
| OBNetwork customer | OBPS | ||||
| Web browser | |||||
| Modules | Core | ||||
| Support ticket | 13396 | ||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0042495: Can not unpost invoices when exists an leaf organization and it is not ready | ||||
| Description | When you created a new organization child of another legal with accounting and this new organization is not set ready, you can not unpost invoices because the field ad_periodcontrolallowed_org_id in ad_org table is null, and a null pointer exeption is thrown in deleted method of class org.openbravo.financial.ResetAccounting. | ||||
| Steps To Reproduce | 1) Create a new organization child of an organization legal with accounting, but not set ready this new organization. (see attachment 13396_00.png) 2) Create a new sales invoice using parent legal with accounting organization, comple and post them. (see attachment 13396_01.png) 3)Unpost this sales order using delete accounting entry check. (see attachment 13396_03.png) Then this procces returns an error (see attachment 13396_04.png) | ||||
| Proposed Solution | Check in method delete in class org.openbravo.financial.ResetAccounting when you get the child tree (new OrganizationStructureProvider().getChildTree(adOrgId, true)) organization exclude not ready organizations Set<String> orgIds = StringUtils.equals(org.getOrganizationType().getId(), "0") ? getLegalOrBusinessOrgsChilds(client, adOrgId) : new OrganizationStructureProvider().getChildTree(adOrgId, true); or exclude not ready organization or use a coalesce in query String myQuery1 = "select ad_org_id, ad_periodcontrolallowed_org_id from ad_org where ad_org_id in (:orgIds)"; when it's code try get ad_periodcontrolallowed_org_id value. | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2019-12-09 22:31 | matias-bernal | New Issue | |||
| 2019-12-09 22:31 | matias-bernal | Assigned To | => Triage Finance | ||
| 2019-12-09 22:31 | matias-bernal | OBNetwork customer | => Gold | ||
| 2019-12-09 22:31 | matias-bernal | Modules | => Core | ||
| 2019-12-09 22:31 | matias-bernal | Support ticket | => 13396 | ||
| 2019-12-09 22:31 | matias-bernal | Resolution time | => 1577674800 | ||
| 2019-12-09 22:31 | matias-bernal | Triggers an Emergency Pack | => No | ||
| 2019-12-10 18:55 | dmiguelez | Assigned To | Triage Finance => AtulOpenbravo | ||
| 2019-12-17 09:34 | AtulOpenbravo | Status | new => scheduled | ||
| 2019-12-17 09:34 | AtulOpenbravo | Note Added: 0116369 | |||
| 2019-12-18 17:46 | dmiguelez | Resolution time | 1577674800 => 1577660400 | ||
| 2019-12-18 17:46 | dmiguelez | Severity | major => minor | ||
| 2019-12-26 15:16 | ngarcia | OBNetwork customer | Gold => OBPS | ||
| 2019-12-26 15:16 | ngarcia | Resolution time | 1577660400 => | ||
| Notes | |||||
|
|
|||||
|
|
||||