Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028230Openbravo ERP04. Warehouse managementpublic2014-11-19 18:062014-12-30 23:27
aferraz 
Sandrahuguet 
highmajoralways
closedfixed 
30Professional Appliance
 
pi 
umartirena
Core
No
0028230: [Costing] Null Pointer Exception is raised when trying to post a goods receipt
[Costing] Null Pointer Exception is raised when trying to post a goods receipt
In QA Testing client, realize that "Spain" organization has no currency.

Create a new product of type "Service" named "LC1000". Select a "Purchase" price list version and enter a unit/list price of 650.00. Add a "Standard" cost with starting date 19-11-2014, ending date 31-12-9999, cost 500, currency EUR, warehouse "Spain warehouse" and manual true.

Go to goods receipt window and create a new one dated on 19-11-2014. Select the product "LC1000", quantity 7 and storage bin "L01". Complete the receipt.

Go to process request window and launch costing background process.

Go back to goods receipt window and post it.

A "Null Pointer Exception" message is shown.
No tags attached.
related to defect 0028234 closed Sandrahuguet [Costing] Costing Rule validation process should check that the organization has a currency setup 
png Exception.png (157,125) 2014-11-19 18:06
https://issues.openbravo.com/file_download.php?file_id=7529&type=bug
png
Issue History
2014-11-19 18:06aferrazNew Issue
2014-11-19 18:06aferrazAssigned To => Sandrahuguet
2014-11-19 18:06aferrazFile Added: Exception.png
2014-11-19 18:06aferrazModules => Core
2014-11-19 18:06aferrazTriggers an Emergency Pack => No
2014-11-19 18:07aferrazSummaryNull Pointer Exception is raised when trying to post a goods receipt => [Costing] Null Pointer Exception is raised when trying to post a goods receipt
2014-11-19 18:07aferrazDescription Updatedbug_revision_view_page.php?rev_id=7101#r7101
2014-11-20 11:10aferrazRelationship addedrelated to 0028234
2014-12-09 10:31hgbotCheckin
2014-12-09 10:31hgbotNote Added: 0072341
2014-12-09 10:31hgbotStatusnew => resolved
2014-12-09 10:31hgbotResolutionopen => fixed
2014-12-09 10:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5da17f50c4b06113f285acdbaca01fd572c119fc [^]
2014-12-09 10:54aferrazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7225#r7225
2014-12-09 11:48umartirenaReview Assigned To => umartirena
2014-12-09 11:48umartirenaNote Added: 0072344
2014-12-09 11:48umartirenaStatusresolved => closed
2014-12-09 11:48umartirenaFixed in Version => pi
2014-12-30 23:27hudsonbotCheckin
2014-12-30 23:27hudsonbotNote Added: 0073186

Notes
(0072341)
hgbot   
2014-12-09 10:31   
Repository: erp/devel/pi
Changeset: 5da17f50c4b06113f285acdbaca01fd572c119fc
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Dec 05 08:51:10 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5da17f50c4b06113f285acdbaca01fd572c119fc [^]

Fixes bug 28230 Null Pointer Exception is raised when trying to post a goods receipt

When a goods receipt with a product of type Service, which has a cost of type Standard, is posted, the DocInOut class calls the getStandardCost method from CostingUtils class with the currency of the current organization. If the organization has no currency, the client's currency will be used. Otherwise, a null pointer exception will be raised.

---
M src/org/openbravo/erpCommon/ad_forms/DocInOut.java
M src/org/openbravo/erpCommon/ad_forms/DocMatchInv.java
---
(0072344)
umartirena   
2014-12-09 11:48   
Code Review + Testing OK
(0073186)
hudsonbot   
2014-12-30 23:27   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6525fe229e06 [^]
Maturity status: Test