Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0035330 | Openbravo ERP | 04. Warehouse management | public | 2017-02-21 16:48 | 2017-03-15 20:19 | ||||||||||||||
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.0PR17Q2 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | markmm82 | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0035330: [Negative Stock Correction]: Warehouse is not taken into account to check if stock was negative previous to an stock increase | ||||||||||||||||||
Description | [Negative Stock Correction]: Warehouse is not taken into account to check if stock was negative previous to an stock increase. The problem is that when calling the getStockOnTransactionDate and getValuedStockOnTransactionDate functions in CostingServer class, a new CostingAlgorithm is being created and its costDimensions are null | ||||||||||||||||||
Steps To Reproduce | As group admin role: Set the Enable Negative Stock Corrections preference to Y Select the Allow negative stock option at Client level Validate a Costing Rule in F&B España S.A. with warehouse dimension selected Create a new product Create a purchase order Add 10 units of the previously created product with a price of 5 Create the goods receipt in España Region Norte warehouse from it Create a purchase order Add 10 units of the previously created product with a price of 5 Create the goods receipt in España Region Sur warehouse from it Create the goods shipment of 15 units in España Region Norte warehouse Create a purchase order Add 10 units of the previously created product with a price of 2 Create the goods receipt in España Region Norte warehouse from it Launch the Costing Background process and check it finishes successfully Check the new entry in Costing tab for Region Norte warehouse is negative because a negative stock correction was not done and it should have be done | ||||||||||||||||||
Proposed Solution | Set costingAlgorithm variable as a global variable inside CostingServer class. Call CostingAlgorithm.init() method only inside getCostingAlgorithm() method. Call getCostingAlgorithm() method only inside CostingServer.init() method. Thus, new CostingAlgorithm instances will only be created and initialized when creating a new CostingServer instance. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2017-02-21 16:48 | ngarcia | New Issue | |||||||||||||||||
2017-02-21 16:48 | ngarcia | Assigned To | => Triage Finance | ||||||||||||||||
2017-02-21 16:48 | ngarcia | Modules | => Core | ||||||||||||||||
2017-02-21 16:48 | ngarcia | Resolution time | => 1489446000 | ||||||||||||||||
2017-02-21 16:48 | ngarcia | Triggers an Emergency Pack | => No | ||||||||||||||||
2017-02-21 16:49 | ngarcia | Description Updated | bug_revision_view_page.php?rev_id=14656#r14656 | ||||||||||||||||
2017-02-21 16:49 | ngarcia | Issue Monitored: networkb | |||||||||||||||||
2017-02-21 16:56 | ngarcia | Proposed Solution updated | |||||||||||||||||
2017-02-21 17:03 | ngarcia | Resolution time | 1489446000 => 1488236400 | ||||||||||||||||
2017-02-22 12:07 | ngarcia | Relationship added | blocks 0035337 | ||||||||||||||||
2017-02-22 12:15 | ngarcia | Note Added: 0094531 | |||||||||||||||||
2017-02-22 15:55 | egoitz | Issue Monitored: egoitz | |||||||||||||||||
2017-02-22 17:12 | markmm82 | Assigned To | Triage Finance => collazoandy4 | ||||||||||||||||
2017-02-23 14:27 | aferraz | Proposed Solution updated | |||||||||||||||||
2017-02-23 18:21 | hgbot | Checkin | |||||||||||||||||
2017-02-23 18:21 | hgbot | Note Added: 0094581 | |||||||||||||||||
2017-02-23 18:21 | hgbot | Status | new => resolved | ||||||||||||||||
2017-02-23 18:21 | hgbot | Resolution | open => fixed | ||||||||||||||||
2017-02-23 18:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d202b98c89e82fdbbb614891ef22b27d5e93d6ec [^] | ||||||||||||||||
2017-02-23 18:26 | markmm82 | Note Added: 0094584 | |||||||||||||||||
2017-02-23 19:23 | markmm82 | Note Deleted: 0094584 | |||||||||||||||||
2017-02-23 19:23 | markmm82 | Review Assigned To | => markmm82 | ||||||||||||||||
2017-02-23 19:23 | markmm82 | Note Added: 0094588 | |||||||||||||||||
2017-02-23 19:23 | markmm82 | Status | resolved => closed | ||||||||||||||||
2017-02-23 19:23 | markmm82 | Fixed in Version | => 3.0PR17Q2 | ||||||||||||||||
2017-03-15 20:19 | hudsonbot | Checkin | |||||||||||||||||
2017-03-15 20:19 | hudsonbot | Note Added: 0095226 | |||||||||||||||||
2017-09-08 14:48 | aferraz | Relationship added | related to 0036758 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|