Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038198 | Openbravo ERP | 05. Production management | public | 2018-03-22 14:58 | 2018-05-09 19:29 |
|
Reporter | ngarcia | |
Assigned To | collazoandy4 | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR18Q3 | |
Merge Request Status | |
Review Assigned To | dmiguelez |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 926 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0038198: Required Quantity in Work Effort - Production Run is rounded to Integer, decimals are removed |
Description | Required Quantity in Work Effort - Production Run is rounded to Integer, decimals are removed
M_ProductionPlan.Neededquantity has Integer Reference instead of Quantity. Besides, in CreateWorkEffort class the value is being rounded:
productionPlan.setRequiredQuantity(requeriedQty.longValue()); |
Steps To Reproduce | As group admin role:
Create a product, set is as Production
Add a storage bin in Manufacturing plan
Create a Process Plan, Version and Operation
Add the previously created product as P+
Create a Work Requirement for that Process Plan
Quantity: 6.5
Process Work Requirement
Create Work Effort from it
Go to Work Effort - Production Run tab and check Required Quantity shows 6 (it should be 6.5)
Delete the Production Run
Create a new one
Select the WR Phase
Check the Required Quantity shows 6 (an it should be 6.5) |
Proposed Solution | Attached a possible patch to be reviewed |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | defect | 0038292 | 3.0PR18Q3 | closed | dmiguelez | API Change Request: Change Required Quantity in Work Effort Reference from Integer to BigDecimal |
|
Attached Files | 38198.patch (2,707) 2018-03-22 14:59 https://issues.openbravo.com/file_download.php?file_id=11668&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2018-03-22 14:58 | ngarcia | New Issue | |
2018-03-22 14:58 | ngarcia | Assigned To | => Triage Finance |
2018-03-22 14:58 | ngarcia | OBNetwork customer | => Yes |
2018-03-22 14:58 | ngarcia | Modules | => Core |
2018-03-22 14:58 | ngarcia | Support ticket | => 926 |
2018-03-22 14:58 | ngarcia | Resolution time | => 1523484000 |
2018-03-22 14:58 | ngarcia | Triggers an Emergency Pack | => No |
2018-03-22 14:59 | ngarcia | File Added: 38198.patch | |
2018-03-22 14:59 | ngarcia | Issue Monitored: networkb | |
2018-03-22 17:39 | dmiguelez | Assigned To | Triage Finance => collazoandy4 |
2018-03-23 20:47 | collazoandy4 | Status | new => scheduled |
2018-03-26 16:41 | collazoandy4 | Note Added: 0103512 | |
2018-04-05 14:50 | martinsdan | Issue Monitored: martinsdan | |
2018-04-05 17:08 | hgbot | Checkin | |
2018-04-05 17:08 | hgbot | Note Added: 0103694 | |
2018-04-05 17:08 | hgbot | Status | scheduled => resolved |
2018-04-05 17:08 | hgbot | Resolution | open => fixed |
2018-04-05 17:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d27b7f54d0daf8885ffd9da4b6c51c7dbd572097 [^] |
2018-04-05 17:08 | dmiguelez | Review Assigned To | => dmiguelez |
2018-04-05 17:08 | dmiguelez | Note Added: 0103695 | |
2018-04-05 17:08 | dmiguelez | Status | resolved => closed |
2018-04-05 17:08 | dmiguelez | Fixed in Version | => 3.0PR18Q3 |
2018-04-06 09:49 | dmiguelez | Note Added: 0103708 | |
2018-04-06 09:49 | dmiguelez | Status | closed => new |
2018-04-06 09:49 | dmiguelez | Resolution | fixed => open |
2018-04-06 09:49 | dmiguelez | Fixed in Version | 3.0PR18Q3 => |
2018-04-06 10:18 | dmiguelez | Status | new => scheduled |
2018-04-06 19:00 | dmiguelez | Note Added: 0103725 | |
2018-04-06 19:00 | dmiguelez | Relationship added | related to 0038292 |
2018-04-09 15:52 | vmromanos | Relationship replaced | depends on 0038292 |
2018-04-12 12:39 | hgbot | Checkin | |
2018-04-12 12:39 | hgbot | Note Added: 0103833 | |
2018-04-12 12:39 | hgbot | Checkin | |
2018-04-12 12:39 | hgbot | Note Added: 0103835 | |
2018-04-12 12:39 | hgbot | Status | scheduled => resolved |
2018-04-12 12:39 | hgbot | Resolution | open => fixed |
2018-04-12 12:39 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/d27b7f54d0daf8885ffd9da4b6c51c7dbd572097 [^] => http://code.openbravo.com/erp/devel/pi/rev/9bf688e01cf861193a690e49a513620454ec19fa [^] |
2018-04-12 12:41 | aferraz | Note Added: 0103836 | |
2018-04-12 12:41 | aferraz | Status | resolved => closed |
2018-04-12 12:41 | aferraz | Fixed in Version | => 3.0PR18Q3 |
2018-05-09 19:29 | hudsonbot | Checkin | |
2018-05-09 19:29 | hudsonbot | Note Added: 0104364 | |
2018-05-09 19:29 | hudsonbot | Checkin | |
2018-05-09 19:29 | hudsonbot | Note Added: 0104374 | |
Notes |
|
(0103512)
|
collazoandy4
|
2018-03-26 16:41
|
|
Test Plan
As group admin role:
Create a product, set is as Production
Add a storage bin in Manufacturing plan
Create a Process Plan, Version and Operation
Add the previously created product as P+
Create a Work Requirement for that Process Plan
Quantity: 6.5
Process Work Requirement
Create Work Effort from it
Go to Work Effort - Production Run tab and check Required Quantity shows the correct value 6.5
Delete the Production Run
Create a new one
Select the WR Phase
Check the Required Quantity shows 6.5 (the corect one) |
|
|
(0103694)
|
hgbot
|
2018-04-05 17:08
|
|
Repository: erp/devel/pi
Changeset: d27b7f54d0daf8885ffd9da4b6c51c7dbd572097
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Fri Mar 23 16:18:56 2018 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/d27b7f54d0daf8885ffd9da4b6c51c7dbd572097 [^]
Fixes issue 38198: Required Quantity in Work Effort - Production Run is rounded
to Integer, decimals are removed
The required quantity in work efforts can be decimals, a long value was set and
the decimals are removed even if the work requeriment quantity is decimal
The Required Quantity in work efforts was change to quantity reference to allows
decimal values.
---
M src-db/database/sourcedata/AD_COLUMN.xml
M src/org/openbravo/erpCommon/ad_actionButton/CreateWorkEffort.java
---
|
|
|
|
|
|
|
There has been an API Change not properly managed.
Reopened until API Change is handled. |
|
|
|
|
|
(0103833)
|
hgbot
|
2018-04-12 12:39
|
|
|
|
(0103835)
|
hgbot
|
2018-04-12 12:39
|
|
Repository: erp/devel/pi
Changeset: 9bf688e01cf861193a690e49a513620454ec19fa
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Fri Mar 23 16:18:56 2018 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/9bf688e01cf861193a690e49a513620454ec19fa [^]
Fixes issue 38198: Required Quantity in Work Effort - Production Run is rounded
to Integer, decimals are removed
The required quantity in work efforts can be decimals, a long value was set and
the decimals are removed even if the work requeriment quantity is decimal
The Required Quantity in work efforts was change to quantity reference to allows
decimal values.
---
M src-db/database/sourcedata/AD_COLUMN.xml
M src/org/openbravo/erpCommon/ad_actionButton/CreateWorkEffort.java
---
|
|
|
|
Pushed and closed again after pushing the API change. |
|
|
|
|
|
|
|