Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012724Openbravo ERP05. Production managementpublic2010-03-18 09:542010-05-18 21:44
networkb 
sivaraman 
highminoralways
closedfixed 
5
2.50MP13 
2.50MP17 
Core
No
0012724: On Production Run , the Completed Quantity is not calculated properly
We have a process plan with Conversion Rate: 2. This process plan has two operations, the first one with Multiplier: 8. When we create a production run of this operation, if we want to do 48 P+, the Completed Quantity is 24 (48/'conversion rate') when it must be 6 (48/'Multiplier').


-As Openbravo Admin create a new product: Tablero. Set 'Production'
-Go to Production Management || Transactions || Process Plan
-Create a new record. Conversion Rate: 2
-Go to Version. Starting Date: 01-01-2000; Ending Date: 31-12-2099
-Go to Operation.
    - Create the first operation. Multiplier: 8. Go to I/O Products.
         - Create a new record: Block of wood (P-), quantity: 1.
         - Save and new: Wooden Back (P+), quantity: 1.

    - Create the second operation. Multiplier: 1. Go to I/O Products.
         - Create a new record: Wooden Back (P-), quantity: 8.
         - Save and new: Tablero (P-), quantity: 2.
         - Save and new: Wood Slice (P+), quantity: 2.

-Go to Production Management || Transactions || Work Requirement
-Select the process plan created. Process quantity: 48.
-Process work requirement.
-Go to Production Management || Transactions || Work Effort || Work Effort >> Production Run
-Select the first operation. process quantity: 48.
-Realize that the Complete Quantity is calculated with conversation rate (48/2) when it must be calculated with the multiplier.
No tags attached.
Issue History
2010-03-18 09:54networkbNew Issue
2010-03-18 09:54networkbAssigned To => adrianromero
2010-03-31 17:05adrianromeroStatusnew => scheduled
2010-03-31 17:05adrianromerofix_in_branch => pi
2010-05-07 05:32sivaramanAssigned Toadrianromero => sivaraman
2010-05-07 05:51hgbotCheckin
2010-05-07 05:51hgbotNote Added: 0027015
2010-05-07 05:51hgbotStatusscheduled => resolved
2010-05-07 05:51hgbotResolutionopen => fixed
2010-05-07 05:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9a65f2c2675b7cd7bd9bb3b7312f4194b02e6024 [^]
2010-05-07 06:07sivaramanNote Added: 0027016
2010-05-11 18:19jpabloaeTarget Version2.50MP16 => 2.50MP17
2010-05-12 13:10arunkumarNote Added: 0027169
2010-05-12 13:10arunkumarStatusresolved => closed
2010-05-13 00:00anonymoussf_bug_id0 => 3000766
2010-05-18 21:44hudsonbotCheckin
2010-05-18 21:44hudsonbotNote Added: 0027491

Notes
(0027015)
hgbot   
2010-05-07 05:51   
Repository: erp/devel/pi
Changeset: 9a65f2c2675b7cd7bd9bb3b7312f4194b02e6024
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Fri May 07 09:20:34 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/9a65f2c2675b7cd7bd9bb3b7312f4194b02e6024 [^]

Fixes issue 12724: On Production Run , the Completed Quantity is not calculated properly

---
M src/org/openbravo/erpCommon/ad_callouts/SL_ProductionPlan_Conversion.java
M src/org/openbravo/erpCommon/ad_callouts/SL_ProductionPlan_WRPhase_data.xsql
---
(0027016)
sivaraman   
2010-05-07 06:07   
Steps to test:
Kindly follow all the steps as given in the 'Steps To Reproduce' section

Root cause and solution:
SL_ProductionPlan_Conversion callout has been modified in order to calculate Completed Quantity using Multiplier. Also, New method has been added in SL_ProductionPlan_WRPhase_data.xsql to get multiplier value for the corresponding operation

Impact:
It has been verified that the fix resolves the issue without any other impact.
(0027169)
arunkumar   
2010-05-12 13:10   
Tested working fine
(0027491)
hudsonbot   
2010-05-18 21:44   
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/9a65f2c2675b [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/aa11838d5f80 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17380.obx [^]