Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032651 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Modules] Warehouse Picking | major | always | 2016-04-11 19:07 | 2016-05-12 14:08 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | markmm82 | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | f3ba7528afec | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Regression date | ||||||||
Regression introduced by commit | ||||||||
Regression level | ||||||||
Review Assigned To | aferraz | |||||||
Regression introduced in release | ||||||||
Summary | 0032651: Stock Reservations are not deleted when cancelling a picking list if the reserved quantity has decimals | |||||||
Description | Stock Reservations are not deleted when cancelling a picking list if the reserved quantity has decimals | |||||||
Steps To Reproduce | As group admin role: Set the Enable Stock Reservations to Y Log out and log in Create a sales order with a product with stock. Set a quantity with decimals such as 4.5 Book it Generate Picking List from it Go to Warehouse Picking List window and cancel it Go to Stock Reservation window and check the reservation is not deleted although the reserved quantity is not 0 Repeat the process with a non decimal value and check the Stock Reservation is deleted | |||||||
Proposed Solution | Change the <variable>.equals(BigDecimal.ZERO) with BigDecimal.ZERO.compareTo(<variable>) == 0 in EditActionHandler.java: if (resStock.getQuantity().equals(BigDecimal.ZERO)) { DeletePickingLineHandler.java: if (reservation.getReservedQty().equals(BigDecimal.ZERO) Utilities.java: if (resStock.getQuantity().equals(BigDecimal.ZERO) && !resStock.isAllocated()) { PickingListActionHandler.java: if (resStock.getQuantity().equals(BigDecimal.ZERO)) { PickingListActionHandler.java: if (res.getReservedQty().equals(BigDecimal.ZERO) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0086387) markmm82 (developer) 2016-05-11 21:44 |
Test plan: As group admin role: Set the Enable Stock Reservations to Y Log out and log in Create a sales order with a product with stock. Set a quantity with decimals such as 4.5 Book it Generate Picking List from it Go to Warehouse Picking List window and cancel it Go to Stock Reservation window and check the reservation has been deleted. |
(0086401) hgbot (developer) 2016-05-12 14:06 |
Repository: erp/pmods/org.openbravo.warehouse.pickinglist Changeset: f3ba7528afec8ad5ec35b3be15237edd2d512db4 Author: Mark <markmm82 <at> gmail.com> Date: Wed May 11 13:46:49 2016 -0400 URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/f3ba7528afec8ad5ec35b3be15237edd2d512db4 [^] Fixes issue 32651: Deleted reservation cancelling a picking if qty has decimals Stock Reservations are deleted when cancelling a picking list if the reserved quantity has decimals. Fixed using the proposed solution: Change the <variable>.equals(BigDecimal.ZERO) with BigDecimal.ZERO.compareTo(<variable>) == 0 in EditActionHandler.java: if (resStock.getQuantity().equals(BigDecimal.ZERO)) { DeletePickingLineHandler.java: if (reservation.getReservedQty().equals(BigDecimal.ZERO) Utilities.java: if (resStock.getQuantity().equals(BigDecimal.ZERO) && !resStock.isAllocated()) { PickingListActionHandler.java: if (resStock.getQuantity().equals(BigDecimal.ZERO)) { PickingListActionHandler.java: if (res.getReservedQty().equals(BigDecimal.ZERO) --- M src/org/openbravo/warehouse/pickinglist/PickingListActionHandler.java M src/org/openbravo/warehouse/pickinglist/Utilities.java M src/org/openbravo/warehouse/pickinglist/actionhandler/DeletePickingLineHandler.java M src/org/openbravo/warehouse/pickinglist/actionhandler/EditActionHandler.java --- |
(0086402) hgbot (developer) 2016-05-12 14:07 |
Repository: erp/pmods/org.openbravo.warehouse.pickinglist Changeset: e60871964dc53fc15b33a5e12d8fa356617c3ce8 Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> Date: Thu May 12 14:04:46 2016 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/e60871964dc53fc15b33a5e12d8fa356617c3ce8 [^] Related to issue 32651: Update module version --- M src-db/database/model/modifiedTables/C_DOCTYPE.xml M src-db/database/sourcedata/AD_COLUMN.xml M src-db/database/sourcedata/AD_MODULE.xml M src-db/database/sourcedata/OBUIAPP_PARAMETER.xml --- |
(0086403) aferraz (manager) 2016-05-12 14:08 |
Code review + Testing OK |
Issue History | |||
Date Modified | Username | Field | Change |
2016-04-11 19:07 | ngarcia | New Issue | |
2016-04-11 19:07 | ngarcia | Assigned To | => Triage Finance |
2016-04-11 19:07 | ngarcia | Resolution time | => 1464127200 |
2016-04-11 19:07 | ngarcia | Issue Monitored: networkb | |
2016-04-12 09:29 | ngarcia | Proposed Solution updated | |
2016-04-12 19:23 | aferraz | Assigned To | Triage Finance => Sanjota |
2016-04-19 17:09 | aferraz | Assigned To | Sanjota => markmm82 |
2016-04-19 17:15 | markmm82 | Status | new => scheduled |
2016-05-11 21:44 | markmm82 | Note Added: 0086387 | |
2016-05-12 14:06 | hgbot | Checkin | |
2016-05-12 14:06 | hgbot | Note Added: 0086401 | |
2016-05-12 14:06 | hgbot | Status | scheduled => resolved |
2016-05-12 14:06 | hgbot | Resolution | open => fixed |
2016-05-12 14:06 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/f3ba7528afec8ad5ec35b3be15237edd2d512db4 [^] |
2016-05-12 14:07 | hgbot | Checkin | |
2016-05-12 14:07 | hgbot | Note Added: 0086402 | |
2016-05-12 14:08 | aferraz | Review Assigned To | => aferraz |
2016-05-12 14:08 | aferraz | Note Added: 0086403 | |
2016-05-12 14:08 | aferraz | Status | resolved => closed |
2017-03-17 14:36 | aferraz | Relationship added | related to 0035542 |
2017-03-22 16:43 | markmm82 | Relationship added | related to 0035600 |
Copyright © 2000 - 2009 MantisBT Group |