Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0031186 | Openbravo ERP | 04. Warehouse management | public | 2015-10-20 12:44 | 2015-11-18 11:13 | ||||||||||||||
Reporter | VictorVillar | ||||||||||||||||||
Assigned To | aferraz | ||||||||||||||||||
Priority | immediate | Severity | major | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | pi | ||||||||||||||||||
Target Version | 3.0PR16Q1 | Fixed in Version | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | dmiguelez | ||||||||||||||||||
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 | 0031186: org.openbravo.fix.stock.qtyorderonhand module is not working with negative stock | ||||||||||||||||||
Description | org.openbravo.fix.stock.qtyorderonhand module is not working with negative stock | ||||||||||||||||||
Steps To Reproduce | org.openbravo.fix.stock.qtyorderonhand module is not working with negative stock | ||||||||||||||||||
Proposed Solution | Review the CostingRuleprocess.java in order to know how this problem is avoided. if (BigDecimal.ZERO.compareTo(qty) < 0) { // Do not insert negative values in Inventory lines, instead reverse the Quantity Count // and the Book Quantity. For example: // Instead of CountQty=0 and BookQty=-5 insert CountQty=5 and BookQty=0 // By doing so the difference between both quantities remains the same and no negative // values have been inserted. openInventoryLine = insertInventoryLine(cri.getInitInventory(), productId, attrSetInsId, uomId, orderUOMId, locatorId, qty, BigDecimal.ZERO, orderQty, BigDecimal.ZERO, lineNo, null); insertInventoryLine(cri.getCloseInventory(), productId, attrSetInsId, uomId, orderUOMId, locatorId, BigDecimal.ZERO, qty, BigDecimal.ZERO, orderQty, lineNo, openInventoryLine); } else { openInventoryLine = insertInventoryLine(cri.getInitInventory(), productId, attrSetInsId, uomId, orderUOMId, locatorId, BigDecimal.ZERO, qty.abs(), BigDecimal.ZERO, orderQty == null ? null : orderQty.abs(), lineNo, closingInventoryLine); insertInventoryLine(cri.getCloseInventory(), productId, attrSetInsId, uomId, orderUOMId, locatorId, qty == null ? null : qty.abs(), BigDecimal.ZERO, orderQty == null ? null : orderQty.abs(), BigDecimal.ZERO, lineNo, openInventoryLine); } | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2015-10-20 12:44 | VictorVillar | New Issue | |||||||||||||||||
2015-10-20 12:44 | VictorVillar | Assigned To | => Triage Finance | ||||||||||||||||
2015-10-20 12:44 | VictorVillar | Modules | => Core | ||||||||||||||||
2015-10-20 12:44 | VictorVillar | Resolution time | => 1447974000 | ||||||||||||||||
2015-10-20 12:44 | VictorVillar | Triggers an Emergency Pack | => No | ||||||||||||||||
2015-10-20 12:44 | VictorVillar | Relationship added | depends on 0030481 | ||||||||||||||||
2015-10-20 12:44 | VictorVillar | Issue Monitored: networkb | |||||||||||||||||
2015-11-05 10:49 | hgbot | Checkin | |||||||||||||||||
2015-11-05 10:49 | hgbot | Note Added: 0081497 | |||||||||||||||||
2015-11-05 10:49 | hgbot | Status | new => resolved | ||||||||||||||||
2015-11-05 10:49 | hgbot | Resolution | open => fixed | ||||||||||||||||
2015-11-05 10:49 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.fix.stock.qtyorderonhand/rev/5ca106808897bda2875a3ba64f32484c333cc565 [^] | ||||||||||||||||
2015-11-05 10:51 | aferraz | Assigned To | Triage Finance => aferraz | ||||||||||||||||
2015-11-11 12:44 | ngarcia | Issue Monitored: ngarcia | |||||||||||||||||
2015-11-11 13:35 | dmiguelez | Review Assigned To | => dmiguelez | ||||||||||||||||
2015-11-11 13:35 | dmiguelez | Note Added: 0081706 | |||||||||||||||||
2015-11-11 13:35 | dmiguelez | Status | resolved => closed | ||||||||||||||||
2015-11-18 11:13 | hgbot | Checkin | |||||||||||||||||
2015-11-18 11:13 | hgbot | Note Added: 0081944 | |||||||||||||||||
2015-12-22 11:10 | VictorVillar | Relationship added | related to 0031761 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|