Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028814Openbravo ERP04. Warehouse managementpublic2015-01-29 16:572015-02-06 10:33
psanjuan 
umartirena 
urgentmajoralways
closedfixed 
20Ubuntu 8.04.1
 
3.0PR15Q2 
Sandrahuguet
Core
No
0028814: Null pointer exception in case of a backdated transaction created for a "production" product type.
Null pointer exception in case of a backdated transaction created for a "production" product type.
Create a product set as "Production". (For doing so, your instance should have been activated, therefore Production related application areas are shown)

Enter a cost in the costing tab, for a given organization

Create a shipment dated on 25/01/2014.
Complete and post.

Create a receipt dated on 15/01/2015 (backdated transaction)
Complete the receipt.

Run costing background process. The error is shown.

No tags attached.
Issue History
2015-01-29 16:57psanjuanNew Issue
2015-01-29 16:57psanjuanAssigned To => dmiguelez
2015-01-29 16:57psanjuanModules => Core
2015-01-29 16:57psanjuanTriggers an Emergency Pack => No
2015-01-29 19:05hgbotCheckin
2015-01-29 19:05hgbotNote Added: 0073920
2015-01-29 19:05hgbotStatusnew => resolved
2015-01-29 19:05hgbotResolutionopen => fixed
2015-01-29 19:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cba032bafcb0a918c1cff764b26d05f9c5c1ce11 [^]
2015-02-04 13:47psanjuanAssigned Todmiguelez => umartirena
2015-02-04 13:47psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7616#r7616
2015-02-04 13:58psanjuanNote Added: 0074086
2015-02-04 14:31psanjuanNote Edited: 0074086bug_revision_view_page.php?bugnote_id=0074086#r7618
2015-02-04 20:34hudsonbotCheckin
2015-02-04 20:34hudsonbotNote Added: 0074199
2015-02-06 10:33SandrahuguetReview Assigned To => Sandrahuguet
2015-02-06 10:33SandrahuguetNote Added: 0074242
2015-02-06 10:33SandrahuguetStatusresolved => closed
2015-02-06 10:33SandrahuguetFixed in Version => 3.0PR15Q2

Notes
(0073920)
hgbot   
2015-01-29 19:05   
Repository: erp/devel/pi
Changeset: cba032bafcb0a918c1cff764b26d05f9c5c1ce11
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Jan 29 19:04:28 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cba032bafcb0a918c1cff764b26d05f9c5c1ce11 [^]

Fixes bug 28814: NPE fixed in Costing Background for a production product

When a product is defined as production the costing records created in the system are always for * organization. If a transaction of this product it was creating a backdated cost adjustment, in one place of the code a NPE exception error was happening because a costing record of legal entity org it was being trying to get. This has been fixed always filtering by client instead of organization when the product is of production type.

---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
(0074086)
psanjuan   
2015-02-04 13:58   
(edited on: 2015-02-04 14:31)
Verified. No error is shown now and the adjustments are correct.

(0074199)
hudsonbot   
2015-02-04 20:34   
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/f36c91d0ad63 [^]
Maturity status: Test
(0074242)
Sandrahuguet   
2015-02-06 10:33   
Code review done