Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024970Openbravo ERP05. Production managementpublic2013-10-18 00:052013-12-31 04:57
VictorVillar 
AtulOpenbravo 
normalminorhave not tried
closedfixed 
5
 
3.0MP31 
VictorVillar
Core
No
0024970: Standard Cost calculation fails under some circumstancies
'Calculate Standard Cost' process fails when the in the process plan exists the same product as P- and P+. The message error

Error:
stack depth limit exceeded
As group admin role,

Go to product window and define Cerveza Ale and Agua as Production products and select the process plan define below


go to Process Plan window,
 create a new one available from 01-01-2013 to now.
Products: - Cerveza Ale P-
          - Agua = P+
          - Cerveza Ale = P+
Launch the 'Calculate Standard Cost' process, realise that an error is raised:

Error:
stack depth limit exceeded
In the ma_standard_cost function it is necessary the same validation as in the Validation Work Effort process to avoid this situation (the same product as P- and P+) but there could be others
No tags attached.
related to defect 0035129 closed collazoandy4 Calculate Standard Costs process is checking records from other clients 
Issue History
2013-10-18 00:05VictorVillarNew Issue
2013-10-18 00:05VictorVillarAssigned To => dmiguelez
2013-10-18 00:05VictorVillarModules => Core
2013-10-18 00:05VictorVillarResolution time => 1388530800
2013-10-18 00:05VictorVillarTriggers an Emergency Pack => No
2013-10-18 00:06VictorVillarIssue Monitored: networkb
2013-10-18 00:07VictorVillarProposed Solution updated
2013-10-25 09:07dmiguelezAssigned Todmiguelez => jonalegriaesarte
2013-11-04 09:54jonalegriaesarteTarget Version3.0MP30 => 3.0MP31
2013-12-27 11:50AtulOpenbravoAssigned Tojonalegriaesarte => AtulOpenbravo
2013-12-27 11:50AtulOpenbravoStatusnew => scheduled
2013-12-27 11:50AtulOpenbravofix_in_branch => pi
2013-12-27 13:08AtulOpenbravoNote Added: 0063097
2013-12-30 13:01AtulOpenbravoReview Assigned To => VictorVillar
2013-12-30 13:01AtulOpenbravofix_in_branchpi =>
2013-12-30 13:11hgbotCheckin
2013-12-30 13:11hgbotNote Added: 0063120
2013-12-30 13:11hgbotStatusscheduled => resolved
2013-12-30 13:11hgbotResolutionopen => fixed
2013-12-30 13:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c1096caec8a6410d092025616a2ee1a28348634f [^]
2013-12-30 13:27VictorVillarNote Added: 0063124
2013-12-30 13:27VictorVillarStatusresolved => closed
2013-12-31 04:57hudsonbotCheckin
2013-12-31 04:57hudsonbotNote Added: 0063135
2017-02-01 13:12ngarciaRelationship addedrelated to 0035129

Notes
(0063097)
AtulOpenbravo   
2013-12-27 13:08   
Test Plan
- Login as F&B Internation Group Admin role.
- Go to product window.
- Define Cerveza Ale and Agua as two products whose production flag is checked as Yes.
- Go to Acivity window and create a new record in it.
- Go to Process Plan window.
- Create a new Process Plan, go to Version Tab and create a new record.
- Go to Operation tab under created version and do the following in Products Tab.
- For Products: - Cerveza Ale, Keep Production Type as P-
                - Agua = P+
                - Cerveza Ale = P+
- Run the 'Calculate Standard Cost' process, check that an message is displayed "Same Product defined as P+ & P- in same Operation" along with Process Plan name and its Version document no is shown in the message.
(0063120)
hgbot   
2013-12-30 13:11   
Repository: erp/devel/pi
Changeset: c1096caec8a6410d092025616a2ee1a28348634f
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Dec 30 17:40:28 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/c1096caec8a6410d092025616a2ee1a28348634f [^]

Fixes issue 0024970:Standard Cost calculation fails under some circumstancies

---
M src-db/database/model/functions/MA_STANDARD_COST.xml
---
(0063124)
VictorVillar   
2013-12-30 13:27   
Verified
(0063135)
hudsonbot   
2013-12-31 04:57   
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/987357c24f95 [^]

Maturity status: Test