Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0022472 | Openbravo ERP | 04. Warehouse management | public | 2012-12-06 12:27 | 2013-01-31 16:39 |
|
Reporter | VictorVillar | |
Assigned To | jonalegriaesarte | |
Priority | urgent | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | 3.0MP20 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | VictorVillar |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0022472: NPE error launching the valued stock report |
Description | NPE error launching the valued stock report, if you have the warehouse selected in the filters, defined as * organization level. |
Steps To Reproduce | As group admin role,
Go to Warehouse and Storage bin window.
Create a new one for * Org. level
Go to Valued stock report and launch the report for the warehouse created before.
Null Pointer Exception error |
Proposed Solution | Remove from ReportValuationStock.java:
String strBaseCurrencyId = (String)DalUtil.getId(FinancialUtils.getLegalEntityCurrency(wh
.getOrganization()));
Because this variable is not used in the java and is looking for the currency of the organization assigned to the warehouse selected
|
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-12-06 12:27 | VictorVillar | New Issue | |
2012-12-06 12:27 | VictorVillar | Assigned To | => dmiguelez |
2012-12-06 12:27 | VictorVillar | Modules | => Core |
2012-12-06 12:27 | VictorVillar | Resolution time | => 1357167600 |
2012-12-06 12:27 | VictorVillar | Triggers an Emergency Pack | => No |
2012-12-06 12:27 | VictorVillar | Issue Monitored: networkb | |
2012-12-10 09:37 | dmiguelez | Assigned To | dmiguelez => jonalegriaesarte |
2012-12-12 14:13 | hgbot | Checkin | |
2012-12-12 14:13 | hgbot | Note Added: 0054891 | |
2012-12-12 14:13 | hgbot | Status | new => resolved |
2012-12-12 14:13 | hgbot | Resolution | open => fixed |
2012-12-12 14:13 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/c3ef43ecb754cb141bb84538c1b0aba0297f5f48 [^] |
2012-12-17 13:34 | hudsonbot | Checkin | |
2012-12-17 13:34 | hudsonbot | Note Added: 0054994 | |
2012-12-24 16:33 | VictorVillar | Note Added: 0055181 | |
2012-12-24 16:33 | VictorVillar | Status | resolved => new |
2012-12-24 16:33 | VictorVillar | Resolution | fixed => open |
2013-01-09 11:26 | jonalegriaesarte | Target Version | 3.0MP19 => 3.0MP20 |
2013-01-10 10:25 | VictorVillar | Note Edited: 0055181 | bug_revision_view_page.php?bugnote_id=0055181#r4254 |
2013-01-21 16:49 | jonalegriaesarte | Severity | major => minor |
2013-01-22 16:59 | hgbot | Checkin | |
2013-01-22 16:59 | hgbot | Note Added: 0055741 | |
2013-01-22 16:59 | hgbot | Status | new => resolved |
2013-01-22 16:59 | hgbot | Resolution | open => fixed |
2013-01-22 16:59 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/c3ef43ecb754cb141bb84538c1b0aba0297f5f48 [^] => http://code.openbravo.com/erp/devel/pi/rev/5c5c67b62ba45a46e43a2c609c2e7d7a755b567d [^] |
2013-01-23 01:15 | hudsonbot | Checkin | |
2013-01-23 01:15 | hudsonbot | Note Added: 0055747 | |
2013-01-31 16:39 | VictorVillar | Review Assigned To | => VictorVillar |
2013-01-31 16:39 | VictorVillar | Note Added: 0056020 | |
2013-01-31 16:39 | VictorVillar | Status | resolved => closed |
Notes |
|
(0054891)
|
hgbot
|
2012-12-12 14:13
|
|
|
|
|
|
|
(0055181)
|
VictorVillar
|
2012-12-24 16:33
(edited on: 2013-01-10 10:25) |
|
is not completly solved because legalEntity is null due to * organization is not legal entity, check the following code. The fix purposed previously is not complete.
Organization legalEntity = OBContext.getOBContext()
.getOrganizationStructureProvider(wh.getClient().getId())
.getLegalEntity(wh.getOrganization());
data = ReportValuationStockData.select(this, vars.getLanguage(), strCurrencyId,
legalEntity.getId(), DateTimeData.nDaysAfter(this, strDate, "1"), strWarehouse,
strCategoryProduct);
|
|
|
(0055741)
|
hgbot
|
2013-01-22 16:59
|
|
Repository: erp/devel/pi
Changeset: 5c5c67b62ba45a46e43a2c609c2e7d7a755b567d
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Mon Jan 21 12:51:08 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5c5c67b62ba45a46e43a2c609c2e7d7a755b567d [^]
Fixes issue 22472: NPE error launching the valued stock report.
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_reports/ReportValuationStock.java
---
|
|
|
|
|
|
|
|