Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005663Openbravo ERP05. Production managementpublic2008-10-27 10:032009-03-03 17:16
jtarbal 
gorkaion 
normalmajorhave not tried
closedfixed 
5
2.40 
 
Core
No
0005663: Inconsistent stock validation in Work Effort
When creating a new Work Effort, in the "Production Run" tab, if a new "WR Phase" is added and this phase depends on the work done in another phase that is in the same Work Effort (the products needed for the phase are produced in a phase before), an error saying insufficient stock appears when generating the standards.

In order to reproduce the error, follow these steps:
1.- Set up a new Production Plan with the following Operations:
      - Operation 1:
        - P-: 1 x Product A
        - P+: 1 x Product B
      - Operation 2:
        - P-: 1 x Product B
        - P+: 1 x Product C
2.- Create a new physical inventory to reinitialize the stock of products A, B and C to 0.
3.- Create a new Work Requirement of 10 units of product C using the process plan created before.
4.- Create a new Work Effort header.
5.- Add a new Production Run to the Work Effort in order to register the execution of the Operation 1 for 10 times. Generate standards.
6.- Add a new Production Run to the Work Effort in order to register the execution of the Operation 2 for 10 times. Generate standards. Realize that an error of insufficient stock appears of product B. However, in the same Work Effort we registered the production of 10 units of product B.
No tags attached.
blocks defect 0005629 closed gorkaion Inconsistent stock validation in Work Effort 
Issue History
2008-10-27 10:03psarobeNew Issue
2008-10-27 10:03psarobeAssigned To => gorkaion
2008-10-27 10:03psarobeStatusnew => scheduled
2008-11-27 17:37svnbotCheckin
2008-11-27 17:37svnbotNote Added: 0010785
2008-11-27 17:37svnbotStatusscheduled => resolved
2008-11-27 17:37svnbotResolutionopen => fixed
2008-11-27 17:37svnbotsvn_revision => 10692
2008-11-27 17:37svnbotCheckin
2008-11-27 17:37svnbotNote Added: 0010786
2008-11-27 17:37svnbotsvn_revision10692 => 10693
2008-12-02 12:39svnbotCheckin
2008-12-02 12:39svnbotNote Added: 0010881
2008-12-02 12:39svnbotsvn_revision10693 => 10842
2009-03-03 17:16psarobeStatusresolved => closed

Notes
(0010785)
svnbot   
2008-11-27 17:37   
Repository: openbravo
Revision: 10692
Author: gorkaion
Date: 2008-11-27 17:37:15 +0100 (Thu, 27 Nov 2008)

Fixed bug 5663. Modified the stock cursor to take into account products created in previous production runs of the same work effort.

---
U branches/r2.40/src-db/database/model/functions/MA_PRODUCTIONRUN_STANDARD.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=10692&sc=1 [^]
(0010786)
svnbot   
2008-11-27 17:37   
Repository: openbravo
Revision: 10693
Author: gorkaion
Date: 2008-11-27 17:37:35 +0100 (Thu, 27 Nov 2008)

Fixed bug 5663. Modified the stock cursor to take into account products created in previous production runs of the same work effort.

---
U trunk/src-db/database/model/functions/MA_PRODUCTIONRUN_STANDARD.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=10693&sc=1 [^]
(0010881)
svnbot   
2008-12-02 12:39   
Repository: openbravo
Revision: 10842
Author: villind
Date: 2008-12-02 12:39:07 +0100 (Tue, 02 Dec 2008)

Merged r10692. Fixed bug 5663. Modified the stock cursor to take into account products created in previous production runs of the same work effort.

---
_U branches/bonware/r2.40/
_U branches/bonware/r2.40/config/setup-tool/
_U branches/bonware/r2.40/eclipse.install.source.launch
_U branches/bonware/r2.40/export.database.launch
_U branches/bonware/r2.40/src-core/src/org/openbravo/database/OpenbravoDriverManagerConnectionFactory.java
U branches/bonware/r2.40/src-db/database/model/functions/MA_PRODUCTIONRUN_STANDARD.xml
_U branches/bonware/r2.40/update.database.launch
---

https://dev.openbravo.com/websvn/openbravo/?rev=10842&sc=1 [^]