Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019824Openbravo ERP05. Production managementpublic2012-02-21 12:402012-04-01 20:39
VictorVillar 
rafademiguel 
highminoralways
closedfixed 
5
3.0MP7.1 
 
OBPS
Core
14312
No
0019824: It should not be possible to create standards if completed qty is zero
If the user has configured a Work Requirement, with Quantity= 0 in the operation, checks off Create Standards, and Creates a Work Effort, the create standards process should not allow the qty = 0.
If the user creates a Work effort and selects a WR phase for the production run and the completed qty is zero, the create standards process should not allow the zero qty.

It would be necessary take into account the quantitys, to avoid problems validating the Work Effort.
Before the steps below, set an activity and a process plan
As Group Admin role,
Go to Work requirement
   - Create a new one
   - Qty= 0
Validate the WR.
  Navigate to Operation tab:
      - Check off the create standards flag.
  Click in Create Work effort button.

Go to the Work effort window.
The completed qty is 0.
We cannot change the completed qty, because the production run is processed.

Another case:
Go to Work requirement window:
 Create a new one
 QTY = 0
Validate it.
Go to operation tab:
  - Create standards: NO.
Click in Create Work Effort button

Go to Work effort window:
 - select the work effort created due to the step before.
Go to Production run tab:
 - select the phase and click in Create Standard button.
 - Completed qty = 0

We realise that the process works fine and no qty has been done in this production run, if the user wants to modify the qty it is not possible because the production run is processed.
If exists any global use, and any production run has completed qty = 0, the work effort will not be able to validate.

There are some options, for example to use an event handler [1] would be a simple solution.

[1]http://wiki.openbravo.com/wiki/How_to_implement_a_business_event_handler [^]
No tags attached.
related to defect 00197923.0MP10 closed jecharri Not possible to validate a work effort because an error 
Issue History
2012-02-21 12:40VictorVillarNew Issue
2012-02-21 12:40VictorVillarAssigned To => vmromanos
2012-02-21 12:40VictorVillarModules => Core
2012-02-21 12:40VictorVillarOBNetwork customer => Yes
2012-02-21 12:40VictorVillarSupport ticket => 14312
2012-02-21 12:40VictorVillarIssue Monitored: networkb
2012-02-21 12:41VictorVillarRelationship addedrelated to 0019792
2012-02-21 12:44VictorVillarProposed Solution updated
2012-03-02 17:31eduardo_ArgalAssigned Tovmromanos => jonalegriaesarte
2012-03-05 18:56VictorVillarAssigned Tojonalegriaesarte => rafademiguel
2012-03-05 18:56VictorVillarTypefeature request => design defect
2012-03-08 17:48hgbotCheckin
2012-03-08 17:48hgbotNote Added: 0046209
2012-03-08 17:48hgbotStatusnew => resolved
2012-03-08 17:48hgbotResolutionopen => fixed
2012-03-08 17:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e4c86dacd7353ac4b273b92911efab516bd13735 [^]
2012-03-14 18:05jecharriNote Added: 0046430
2012-03-14 18:05jecharriStatusresolved => closed
2012-04-01 20:39hudsonbotCheckin
2012-04-01 20:39hudsonbotNote Added: 0047075

Notes
(0046209)
hgbot   
2012-03-08 17:48   
Repository: erp/devel/pi
Changeset: e4c86dacd7353ac4b273b92911efab516bd13735
Author: Rafa de Miguel <rafael.demiguel <at> openbravo.com>
Date: Wed Mar 07 13:56:01 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e4c86dacd7353ac4b273b92911efab516bd13735 [^]

Fixed issue 0019824: It should not be possible to create standards if completed qty is zero

---
M src-db/database/model/functions/MA_PRODUCTIONRUN_STANDARD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0046430)
jecharri   
2012-03-14 18:05   
Verified and working properly
(0047075)
hudsonbot   
2012-04-01 20:39   
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/640de9acc2d5 [^]

Maturity status: Test