Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026698Openbravo ERP04. Warehouse managementpublic2014-05-26 20:002014-08-26 13:12
VictorVillar 
AtulOpenbravo 
urgentmajoralways
closedunable to reproduce 
5
pi 
3.0PR14Q4 
VictorVillar
Core
No
0026698: Null pointer exception error in Costing Background process under some circumstancies
You will get a NPE error in the Costing Migration Process when you have a product defined as non stocked but you have stock in the application --> sum (movementqty) > 0 of the m_transaction. In order to have that definition you should disable the m_produc_trg()
You will get a NPE error in the Costing Migration Process when you have a product defined as non stocked but you have stock in the application --> sum (movementqty) > 0 of the m_transaction. In order to have that definition you should disable the m_produc_trg().

As a result of that, the Costing migration process creates the closing/opening Physical inventories [1], and this product is taken into account by this process
because there is stock, after that when the process tries to calculate the cost field for the opening physical inventories for that product, it is looking for the cost of
the closing physical inventory transaction (m_transaction table), but due to that product is defined as not stocked, the transaction register related to the closing inventory is not entered in the
m_transaction table, so that is the reason of the null pointer exception error.

- ignore the products which are not Item and Stockable.

- raise a warning informing about that situation

- could be considered more options
No tags attached.
related to defect 00233873.0MP24 closed pramakrishnan A stocked product can be changed to non stocked with warehouse movements in the system 
Issue History
2014-05-26 20:00VictorVillarNew Issue
2014-05-26 20:00VictorVillarAssigned To => dmiguelez
2014-05-26 20:00VictorVillarModules => Core
2014-05-26 20:00VictorVillarResolution time => 1403560800
2014-05-26 20:00VictorVillarTriggers an Emergency Pack => No
2014-05-26 20:00VictorVillarAssigned Todmiguelez => jonalegriaesarte
2014-05-26 20:00VictorVillarIssue Monitored: networkb
2014-05-28 11:18jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2014-06-11 13:13ngarciaRelationship addedrelated to 0023387
2014-06-30 12:34eduardo_ArgalTarget VersionPR14Q3 => PR14Q4
2014-07-03 11:07AtulOpenbravoAssigned Topramakrishnan => AtulOpenbravo
2014-07-03 11:07AtulOpenbravoStatusnew => scheduled
2014-07-03 11:07AtulOpenbravofix_in_branch => pi
2014-08-26 13:12VictorVillarReview Assigned To => VictorVillar
2014-08-26 13:12VictorVillarStatusscheduled => closed
2014-08-26 13:12VictorVillarResolutionopen => unable to reproduce

There are no notes attached to this issue.