Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0045164 | Openbravo ERP | 05. Production management | public | 2020-09-30 16:36 | 2020-10-26 16:11 |
Reporter | Leyre | ||||
Assigned To | inigo_lerga | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | PR21Q1 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | OBPS | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | 18625 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0045164: The cost of a salary category and machine defined for the future is taken into account in a work effort | ||||
Description | When a salary category or machine has an assigned cost with a date higher than the current one, the database function = "MA_PRODUCTION_COST" returns the assigned cost wrong, because it should be the one with a higher date but always below of the current date. However, the function returns the one with a higher date. | ||||
Steps To Reproduce | Create two products: "consumed" and "produced" Set them as production Set a storage bin for "produced" product in Product - Manufacturing tab Set a cost of 1 for "consumed" product in Product - Costing tab Increase the stock of the "consumed" one (you can use a physical inventory) Create a Salary Category Set a Cost to it: Cost: 1000 Cost UOM: per Produced Units Starting date: today Create a Machine: Set a Cost to it: Cost: 1000 Cost UOM: per Produced Units Starting date: a date in the future (06-10-2021) Create a Manufacting Cost Center and version (valid from today) Add the Machine to it Add the Salary Category to it Go to Salary category and change its Cost starting date to a date in the future (06-10-2021) Create an Activity and assign the previously created cost center Create a Process Plan, Version and Operation Assign the previously created Activity to the Operation Set a Cost Center Use time Select Create Standards Add in I/O products tab the "consumed" product as Product use (P-) and the "produced" product as Product Production (P+) Create a Work Requirement Assign the previously created Process Plan Process it Create Work Effort Go to Work Effort and assign the Cost Center Version, Salary Category and Machine Validate it Launch the costing background process and check the cost of the salary category and machine has been taken into account for cost calculation and they shouldn't as they are not valid in the current date | ||||
Proposed Solution | Please, see attached file MA_PRODUCTION_COST.diff | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=15001&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=15033&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=15034&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-09-30 16:36 | Leyre | New Issue | |||
2020-09-30 16:36 | Leyre | Assigned To | => Triage Finance | ||
2020-09-30 16:36 | Leyre | File Added: MA_PRODUCTION_COST.diff | |||
2020-09-30 16:36 | Leyre | OBNetwork customer | => OBPS | ||
2020-09-30 16:36 | Leyre | Modules | => Core | ||
2020-09-30 16:36 | Leyre | Support ticket | => 18625 | ||
2020-09-30 16:36 | Leyre | Resolution time | => 1603231200 | ||
2020-09-30 16:36 | Leyre | Triggers an Emergency Pack | => No | ||
2020-09-30 16:59 | Leyre | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=21762#r21762 | ||
2020-10-01 11:04 | inigo_lerga | Assigned To | Triage Finance => inigo_lerga | ||
2020-10-01 11:04 | inigo_lerga | Status | new => scheduled | ||
2020-10-01 14:02 | hgbot | Merge Request Status | => open | ||
2020-10-01 14:02 | hgbot | Note Added: 0123480 | |||
2020-10-05 12:20 | inigo_lerga | Note Added: 0123530 | |||
2020-10-05 12:20 | inigo_lerga | Status | scheduled => feedback | ||
2020-10-06 17:57 | ngarcia | Status | feedback => scheduled | ||
2020-10-06 17:57 | ngarcia | Summary | Cost calculation => The cost of a salary category and machine defined for the future is taken into account in a work effort | ||
2020-10-06 17:57 | ngarcia | Description Updated | bug_revision_view_page.php?rev_id=21768#r21768 | ||
2020-10-06 17:57 | ngarcia | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=21769#r21769 | ||
2020-10-09 10:59 | ngarcia | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=21773#r21773 | ||
2020-10-12 12:52 | Practics | Issue Monitored: Practics | |||
2020-10-20 10:25 | inigo_lerga | Note Added: 0123795 | |||
2020-10-20 10:25 | inigo_lerga | File Added: Before-Fix.png | |||
2020-10-20 10:25 | inigo_lerga | File Added: After-Fix.png | |||
2020-10-20 10:26 | inigo_lerga | Note Edited: 0123795 | bug_revision_view_page.php?bugnote_id=0123795#r21810 | ||
2020-10-26 16:11 | hgbot | Merge Request Status | open => approved | ||
2020-10-26 16:11 | hgbot | Resolution | open => fixed | ||
2020-10-26 16:11 | hgbot | Status | scheduled => closed | ||
2020-10-26 16:11 | hgbot | Note Added: 0123944 | |||
2020-10-26 16:11 | hgbot | Fixed in Version | => PR21Q1 | ||
2020-10-26 16:11 | hgbot | Note Added: 0123945 | |||
2020-10-26 16:11 | hgbot | Note Added: 0123946 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|