Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028841Openbravo ERP05. Production managementpublic2015-02-03 10:152015-02-04 20:35
maite 
AtulOpenbravo 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q23.0PR15Q2 
Sandrahuguet
Core
Production - Confirmed Stable
2014-06-18
3.0PR14Q3
https://code.openbravo.com/erp/devel/pi/rev/3d6754bc564f15ee427e82a3975d23eca890b2a1 [^]
No
0028841: NullPointerException error when posting a work effort
NullPointerException error when posting a work effort
1. Create two products set as Production: one to be produced and one to be consumed
2. Set the consumed one as Not Stocked
3. Add a standard cost to it
4. Add a storage bin to the consumed one in Manufacturing tab
5. Create a Manufacturing Cost Center and version
6. Create an Activity and assign the previous cost center
7. Create a Process Plan, Version and Operation
8. Add the previous created Activity to the Operation and set Create Standards to 'Y'
9. Set the previously created products in the I/O Products tab of the Process Plan
10. Create a Work Requirement and assign the previously created Process Plan
11. Process it
12. Create a Work Effort from it
13. Go to the Work Effort window and Validate it
14. Launch the costing background process
15. Try to post the work effort and check you will get the following message:
   "Process failed during execution"
No tags attached.
caused by defect 00261993.0PR14Q3 closed AtulOpenbravo when trying to post a Work Effort with total cost = 0, the Post status should be "Disabled for Accounting" 
Issue History
2015-02-03 10:15maiteNew Issue
2015-02-03 10:15maiteAssigned To => dmiguelez
2015-02-03 10:15maiteModules => Core
2015-02-03 10:15maiteRegression level => Production - Confirmed Stable
2015-02-03 10:15maiteRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/3d6754bc564f15ee427e82a3975d23eca890b2a1 [^]
2015-02-03 10:15maiteTriggers an Emergency Pack => No
2015-02-03 10:15maiteIssue Monitored: networkb
2015-02-03 10:18SandrahuguetAssigned Todmiguelez => AtulOpenbravo
2015-02-03 11:04AtulOpenbravoStatusnew => scheduled
2015-02-03 11:04AtulOpenbravofix_in_branch => pi
2015-02-03 13:26SandrahuguetRegression date => 2014-06-18
2015-02-03 13:26SandrahuguetRegression introduced in release => 3.0PR14Q3
2015-02-03 13:26Sandrahuguetfix_in_branchpi =>
2015-02-03 16:31hgbotCheckin
2015-02-03 16:31hgbotNote Added: 0074036
2015-02-03 16:31hgbotStatusscheduled => resolved
2015-02-03 16:31hgbotResolutionopen => fixed
2015-02-03 16:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b1889299d7a667df851bd6a7e0c9a29d292537c2 [^]
2015-02-03 16:38SandrahuguetReview Assigned To => Sandrahuguet
2015-02-03 16:38SandrahuguetNote Added: 0074037
2015-02-03 16:38SandrahuguetStatusresolved => closed
2015-02-03 16:38SandrahuguetFixed in Version => 3.0PR15Q2
2015-02-04 04:12AtulOpenbravoNote Added: 0074064
2015-02-04 08:45dmitry_mezentsevRelationship addedcaused by 0026199
2015-02-04 20:35hudsonbotCheckin
2015-02-04 20:35hudsonbotNote Added: 0074213

Notes
(0074036)
hgbot   
2015-02-03 16:31   
Repository: erp/devel/pi
Changeset: b1889299d7a667df851bd6a7e0c9a29d292537c2
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Feb 03 15:57:48 2015 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/b1889299d7a667df851bd6a7e0c9a29d292537c2 [^]

Fixes Issue 28841:NullPointerException error when posting a work effort

Work effort lines with products having setting stocked=No does not
have records in m_ transaction. They should be skipped.

---
M src/org/openbravo/erpCommon/ad_forms/DocProduction.java
---
(0074037)
Sandrahuguet   
2015-02-03 16:38   
Code review + testing OK
(0074064)
AtulOpenbravo   
2015-02-04 04:12   
Test Plan
01. Create two products.
   -Product A Consumed, Stocked = No, Production = Yes
   -Product B Produced, Stocked = Yes, Production = Yes
02. Under Costing tab, add a standard cost to it.
03. Add a storage bin to the Product A Consumed in Manufacturing tab
04. Create a Manufacturing Cost Center and create a version.
05. Create an Activity and assign the previous cost center to it.
06. Create a Process Plan, Version and Operation.
07. Add the previous created Activity to the Operation and set Create Standards to 'Y'.
08. Set the previously created products in the I/O Products tab of the Process Plan.
09. Create a Work Requirement and assign the previously created Process Plan and Process it.
10. Create a Work Effort from it.
11. Go to the Work Effort window, choose the record created and Validate it
12. Launch the costing background process.
13. Check that Posting of Work Effort record will be done successfully.
(0074213)
hudsonbot   
2015-02-04 20:35   
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