Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045186 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 04. Warehouse management | major | always | 2020-10-05 10:33 | 2020-11-04 10:08 | |||
Reporter | gorkaion | View Status | public | |||||
Assigned To | AtulOpenbravo | |||||||
Priority | high | Resolution | fixed | Fixed in Version | PR21Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 18780 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0045186: Wrong cum stock and cum valuation on backdated transaction costs | |||||||
Description | When a backdated transaction is adjusted but it does not modify its average cost the cumulated values are not reset. This causes wrong average cost calculations on following transactions as they use wrong cumulated values. | |||||||
Steps To Reproduce | Go to Costing Rules and enabled backdated transactions since 01-01-2020 Go to Product and create a new product TEST in F&B España. On the price tab add a new price on Tarifa Bebidas Alegres of 1EUR. All documents on F&B España - Region Norte: 1 Create a Physical Inventory with Movement Date 18-09-2020. Qty 100 Storage Bin RN-2-0-0 2 Create a Physical Inventory with Movement Date 18-09-2020. Qty 150 Storage Bin RN-2-0-0 3 Create a Goods Movement with Movement Date 19-09-2020. Qty 20 Storage Bin RN-2-0-0 to RN-1-0-0 4 Create a Goods Movement with Movement Date 19-09-2020. Qty 30 Storage Bin RN-2-0-0 to RN-1-0-0 5 Create a Physical Inventory with Movement Date 18-09-2020. Qty 80 Storage Bin RN-1-0-0 6 Create a Goods Movement with Movement Date 19-09-2020. Qty 60 Storage Bin RN-1-0-0 to RN-2-0-0 7 Create a Physical Inventory with Movement Date 18-09-2020. Qty 200 Storage Bin RN-2-0-0 8 Create a Physical Inventory with Movement Date 18-09-2020. Qty 230 Storage Bin RN-2-0-0 9 Create a Physical Inventory with Movement Date TODAY+1. Qty 70. Storage Bin RN-1-0-0 Schedule to run immediately the Costing Background process to ensure that all transactions are calculated. Go to the Costing Tab of the Product and refresh it in case there are not costs yet. Note that the last Average Cost has wrong Total Movement Quantity and Total Stock Valuation fields. It is showing 400 when the expected value is 300. | |||||||
Proposed Solution | It needs to be reviewed if following methods are returning good values: 1. AverageAlgorithm.getLastCumulatedCosting() is returning the correct average cost. In the proposed steps to reproduce example it should return the inventory of step 8. 2. CostingUtils.getCurrentStock() and CostingUtils.getCurrentValuedStock() are returning the correct values. If inventory of step 8 is returned it should only sum the goods movements transactions of 19-09-2020 and return a value of 250 in both cases. It seems that these methods are returning 350. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0124084) AtulOpenbravo (viewer) 2020-11-02 10:25 |
- Navigate to F&B International Group Admin role. - Go to Costing Rule for F&B España organization. - Run Fix back dated transactions process with Fix BackDated From as 01-01-2020. - Go to Product and create a new product TEST in F&B España. - Navigate to Price tab add a new price on Tarifa Bebidas Alegres of 1 EUR. - All documents on F&B España - Region Norte - Create a Physical Inventory with Movement Date 18-09-2020. Qty 100 Storage Bin RN-2-0-0 - Create a Physical Inventory with Movement Date 18-09-2020. Qty 150 Storage Bin RN-2-0-0 - Create a Goods Movement with Movement Date 19-09-2020. Qty 20 Storage Bin RN-2-0-0 to RN-1-0-0 - Create a Goods Movement with Movement Date 19-09-2020. Qty 30 Storage Bin RN-2-0-0 to RN-1-0-0 - Create a Physical Inventory with Movement Date 18-09-2020. Qty 80 Storage Bin RN-1-0-0 - Create a Goods Movement with Movement Date 19-09-2020. Qty 60 Storage Bin RN-1-0-0 to RN-2-0-0 - Create a Physical Inventory with Movement Date 18-09-2020. Qty 200 Storage Bin RN-2-0-0 - Create a Physical Inventory with Movement Date 18-09-2020. Qty 230 Storage Bin RN-2-0-0 - Create a Physical Inventory with Movement Date TODAY+1. Qty 70. Storage Bin RN-1-0-0 - Schedule to run immediately the Costing Background process to ensure that all transactions are calculated. - Go to the Costing Tab of the Product and refresh it in case there are not costs yet. - Realize that the last Average Cost has correct Total Movement Quantity and Total Stock Valuation value i.e 300 |
(0124088) hgbot (developer) 2020-11-02 10:59 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/211 [^] |
(0124143) hgbot (developer) 2020-11-04 10:08 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/211 [^] |
(0124144) hgbot (developer) 2020-11-04 10:08 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 58c18722c19b597d6ddc295086c558da775017ea Author: Atul Gaware <atul.gaware@openbravo.com> Date: 2020-10-30T23:48:14+05:30 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/58c18722c19b597d6ddc295086c558da775017ea [^] Fixes BUG-0045186: Wrong cum stock and cum valuation on backdated transaction costs With backdatedtrans to know transactions AFTER current transaction use costing.getInventoryTransaction.getTrxProcessDate() instead of costing starting date --- M src/org/openbravo/costing/CostingUtils.java --- |
(0124145) hgbot (developer) 2020-11-04 10:08 |
Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: 60d28f0068c6e7e968130ed63169e96250c12339 Author: Atul Gaware <atul.gaware@openbravo.com> Date: 2020-11-03T22:50:18+05:30 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/60d28f0068c6e7e968130ed63169e96250c12339 [^] Related to BUG-0045186: Wrong cum stock and cum valuation on backdated transaction costs **Changed reference for Product window Costing Tab fields Starting Date and Ending Date as DateTime with length 19 instead of Date with 10 length --- M src-db/database/sourcedata/AD_COLUMN.xml --- |
![]() |
|||
Date Modified | Username | Field | Change |
2020-10-05 10:33 | gorkaion | New Issue | |
2020-10-05 10:33 | gorkaion | Assigned To | => Triage Finance |
2020-10-05 10:33 | gorkaion | OBNetwork customer | => OBPS |
2020-10-05 10:33 | gorkaion | Modules | => Core |
2020-10-05 10:33 | gorkaion | Support ticket | => 18780 |
2020-10-05 10:33 | gorkaion | Resolution time | => 1603666800 |
2020-10-05 10:33 | gorkaion | Triggers an Emergency Pack | => No |
2020-10-05 12:28 | inigo_lerga | Status | new => scheduled |
2020-10-09 10:47 | dmiguelez | Assigned To | Triage Finance => inigo_lerga |
2020-10-29 10:15 | AtulOpenbravo | Assigned To | inigo_lerga => AtulOpenbravo |
2020-11-02 10:25 | AtulOpenbravo | Note Added: 0124084 | |
2020-11-02 10:59 | hgbot | Merge Request Status | => open |
2020-11-02 10:59 | hgbot | Note Added: 0124088 | |
2020-11-04 10:08 | hgbot | Merge Request Status | open => approved |
2020-11-04 10:08 | hgbot | Note Added: 0124143 | |
2020-11-04 10:08 | hgbot | Resolution | open => fixed |
2020-11-04 10:08 | hgbot | Status | scheduled => closed |
2020-11-04 10:08 | hgbot | Fixed in Version | => PR21Q1 |
2020-11-04 10:08 | hgbot | Note Added: 0124144 | |
2020-11-04 10:08 | hgbot | Note Added: 0124145 |
Copyright © 2000 - 2009 MantisBT Group |