Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036235Openbravo ERP04. Warehouse managementpublic2017-06-12 16:332017-09-21 16:49
collazoandy4 
collazoandy4 
normalminoralways
closedfixed 
5
 
3.0PR17Q4 
aferraz
Core
No
0036235: NPE in SL_ProductionPlan_WRPhase_Quantity callout when updating production quantity in Production Plan tab
NPE in SL_ProductionPlan_WRPhase_Quantity callout when updating production quantity in Production Plan tab
As group admin role:
   Create another record in Product window:
      SearchKey/Name: BomProduct
      Bill Of Materials: Y
      Stocked: Yes
      Create a new record in Bill of Materials tab:
         BOM Product: FirstProduct
      Create another record in Bill of Material tab:
         BOM Product: Cerveza Ale 0,5L
      Clic on Verify BOM
   Go to Bill Of Materials Production window and create a new record:
      Name: Issue
      Create a new record in Production Plan tab:
        Product: BomProduct
        Production Quantity: 2
   Check a NPE is shown in the console:
     java.lang.NullPointerException at org.openbravo.erpCommon.ad_callouts.SL_ProductionPlan_WRPhase_Quantity.execute(SL_ProductionPlan_WRPhase_Quantity.java:46)
No tags attached.
related to defect 0036061 closed collazoandy4 Bill Of Materials Production is creating an entry in Product - Transactions tab (M_TRANSACTION) for a non stocked product 
has duplicate defect 0029954 closed aferraz NPE while creating a Production Plan in Bill of Materials Production 
Issue History
2017-06-12 16:33collazoandy4New Issue
2017-06-12 16:33collazoandy4Assigned To => Triage Finance
2017-06-12 16:33collazoandy4Modules => Core
2017-06-12 16:33collazoandy4Triggers an Emergency Pack => No
2017-06-12 19:09collazoandy4Relationship addedrelated to 0036061
2017-06-13 09:11aferrazSummaryNPE en el callout SL_ProductionPlan_WRPhase_Quantity, al setear el production quantity en el tab Production Plan => NPE in SL_ProductionPlan_WRPhase_Quantity callout when updating production quantity in Production Plan tab
2017-06-13 09:11aferrazDescription Updatedbug_revision_view_page.php?rev_id=15346#r15346
2017-06-28 21:04collazoandy4Statusnew => scheduled
2017-06-28 21:05collazoandy4Note Added: 0097742
2017-06-28 21:05collazoandy4Assigned ToTriage Finance => collazoandy4
2017-07-04 12:10hgbotCheckin
2017-07-04 12:10hgbotNote Added: 0097831
2017-07-04 12:10hgbotStatusscheduled => resolved
2017-07-04 12:10hgbotResolutionopen => fixed
2017-07-04 12:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/99f19c55511812c3426c58ed9221596a5539bdde [^]
2017-07-04 12:10hgbotCheckin
2017-07-04 12:10hgbotNote Added: 0097832
2017-07-04 12:11aferrazReview Assigned To => aferraz
2017-07-04 12:11aferrazNote Added: 0097833
2017-07-04 12:11aferrazStatusresolved => closed
2017-07-04 12:11aferrazFixed in Version => 3.0PR17Q4
2017-09-21 16:49hudsonbotCheckin
2017-09-21 16:49hudsonbotNote Added: 0099233
2017-09-21 16:49hudsonbotCheckin
2017-09-21 16:49hudsonbotNote Added: 0099234
2017-09-28 09:54aferrazRelationship addedhas duplicate 0029954

Notes
(0097742)
collazoandy4   
2017-06-28 21:05   
As group admin role:
   Create a new record in Product window:
      SearchKey/Name: BomProduct
      Bill Of Materials: Y
      Stocked: Yes
      Create another record in Bill of Material tab:
         BOM Product: Cerveza Ale 0,5L
      Clic on Verify BOM
   Go to Bill Of Materials Production window and create a new record:
      Name: Issue
      Create a new record in Production Plan tab:
        Product: BomProduct
        Production Quantity: 2
   Check no error is shown in the console
(0097831)
hgbot   
2017-07-04 12:10   
Repository: erp/devel/pi
Changeset: 99f19c55511812c3426c58ed9221596a5539bdde
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Wed Jun 28 14:43:54 2017 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/99f19c55511812c3426c58ed9221596a5539bdde [^]

Fixes issue 36235: NPE in SL_ProductionPlan_WRPhase_Quantity callout

A NPE is raise when updating production quantity in Production Plan tab because
WorkRequirementOperation is null.

A null check was added to prevent raise the exception.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_ProductionPlan_WRPhase_Quantity.java
---
(0097832)
hgbot   
2017-07-04 12:10   
Repository: erp/devel/pi
Changeset: a24ae7e02b62266688a2607081ec60c8d0c77225
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Jul 04 12:09:05 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a24ae7e02b62266688a2607081ec60c8d0c77225 [^]

Related to issue 36235: Code review improvements

Run callout if strmWRPhase is not empty.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_ProductionPlan_WRPhase_Quantity.java
---
(0097833)
aferraz   
2017-07-04 12:11   
Code review + Testing OK
(0099233)
hudsonbot   
2017-09-21 16:49   
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/9750b78d3e5c [^]
Maturity status: Test
(0099234)
hudsonbot   
2017-09-21 16:49   
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/9750b78d3e5c [^]
Maturity status: Test