Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012619Openbravo ERP05. Production managementpublic2010-03-09 17:522010-04-19 21:10
networkb 
adrianromero 
urgentmajoralways
closedfixed 
5
2.50MP12 
2.50MP14 
Core
No
0012619: Error when use 'Validate Work Effort'
We have this stock(Product: Hammer):
   - Main warehouse: -300
   - Secondary warehouse: +600
We create a Process plan. We select as P- 500 hammers of the secondary warehouse.
On Work Effort when click 'Validate Work Effort', this error appears:
    
Error:
Insufficient stock:: Hammer
-As Openbravo Admin and with the stock mentioned go to Production Management || Transactions || Process Plan
-Create a new record, save and go to Version.
-Create a new record, (Starting Date: 01-01-2000; Ending Date: 31-12-9999), save and go to Operation.
-Create a new record, save and go to I/O Products.
-Create a new record:
    -Production type: P-.
    -Quantity 600.
    -Click on the Product's icon to search the hammer. On the selector, choose Secondary Warehouse and select Hammer (Quantity: 600)

-Save and go to Production Management || Transactions || Work Requirement
-Create a new record (Quantity: 1), with the process plan created click 'Process Work Requirement'

-Go to Production Management || Transactions || Work Effort
-Create a new record and go to Production Run.
-Select the WR Phase created, completed quantity: 1, save and click 'Create Standars'
-Go back to the Header and click 'Validate Work Effort'
No tags attached.
related to defect 00127582.50MP17 closed harikrishnan Exception executing 'MA_PRODUCTIONRUN_STANDARD" when working with negative stocks 
Issue History
2010-03-09 17:52networkbNew Issue
2010-03-09 17:52networkbAssigned To => adrianromero
2010-03-12 12:46adrianromeroStatusnew => scheduled
2010-03-12 12:46adrianromerofix_in_branch => pi
2010-03-22 10:58hgbotCheckin
2010-03-22 10:58hgbotNote Added: 0025640
2010-03-22 10:58hgbotStatusscheduled => resolved
2010-03-22 10:58hgbotResolutionopen => fixed
2010-03-22 10:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/24b5a4a1accda15f372f8418fa57ffe2a5efb21b [^]
2010-03-22 11:24sivaramanNote Added: 0025641
2010-03-22 12:44adrianromeroRelationship addedrelated to 0012758
2010-04-07 13:04arunkumarNote Added: 0025932
2010-04-07 13:04arunkumarStatusresolved => closed
2010-04-08 00:00anonymoussf_bug_id0 => 2983498
2010-04-19 21:10hudsonbotCheckin
2010-04-19 21:10hudsonbotNote Added: 0026364

Notes
(0025640)
hgbot   
2010-03-22 10:58   
Repository: erp/devel/pi
Changeset: 24b5a4a1accda15f372f8418fa57ffe2a5efb21b
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Mon Mar 22 15:30:20 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/24b5a4a1accda15f372f8418fa57ffe2a5efb21b [^]

Fixes issue 12619: Error when use 'Validate Work Effort'

---
M src-db/database/model/functions/MA_WORKEFFORT_VALIDATE.xml
---
(0025641)
sivaraman   
2010-03-22 11:24   
Prerequisite:
We have the following stock for the product Hammer
  - Main warehouse: -300
  - Secondary warehouse: +600
(manipulate Sales Order or Purchase Order to meet the above quantity)

Steps to test:
1. Log on to Openbravo
2. Change role to Openbravo Admin
3. Go to Production Management || Transactions || Process Plan
4. Create a new record, save and go to Version.
5. Create a new record, (Starting Date: 01-01-2000; Ending Date: 31-12-9999), save and go to Operation.
6. Create a new record, save and go to I/O Products.
7. Create a new record as follows
    -Production type: P-.
    -Quantity 600.
    -Click on the Product's icon to search the hammer. On the selector, choose Secondary Warehouse and select Hammer (Quantity: 600)
8. Save and go to Production Management || Transactions || Work Requirement
9. Create a new record (Quantity: 1), with the process plan created click 'Process Work Requirement'
10. Go to Production Management || Transactions || Work Effort
11. Create a new record and go to Production Run.
12. Select the WR Phase created, completed quantity: 1, save and click 'Create Standars'
13. Go back to the Header and click 'Validate Work Effort'
(0025932)
arunkumar   
2010-04-07 13:04   
Tested & working fine
(0026364)
hudsonbot   
2010-04-19 21:10   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/24b5a4a1accd [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]