Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0031952 | Modules | Warehouse Picking | public | 2016-01-19 17:26 | 2016-03-17 10:56 |
|
Reporter | ngarcia | |
Assigned To | aferraz | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | dmiguelez |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0031952: Negative reservations are created when a picking list line is deleted if the reservation quantity is decreased before |
Description | Negative reservations are created when a picking list line is deleted if the reservation quantity is decreased before |
Steps To Reproduce | As group admin role:
Create the Enable Stock Reservations preference
Create a Sales Order
Add 10 units for a product with stock to it and complete it
Click on Manage Reservation and reserve the whole quantity as allocated
Generate the Picking List but do not process it
Go to the Sales Order an decrease the reserved amount
Go to the Picking list and delete the line
Go to the Sales order Reservation and check the reserved amount is negative
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0030027 | | new | Triage Omni WMS | Reservation related to a not processed Warehouse Picking should not be editable apart from Warehouse Picking flows. |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-01-19 17:26 | ngarcia | New Issue | |
2016-01-19 17:26 | ngarcia | Assigned To | => Triage Finance |
2016-01-19 17:26 | ngarcia | Resolution time | => 1455836400 |
2016-01-19 17:27 | ngarcia | Relationship added | related to 0030027 |
2016-01-19 17:27 | ngarcia | Issue Monitored: networkb | |
2016-02-05 12:28 | aferraz | Status | new => scheduled |
2016-02-05 12:28 | aferraz | Assigned To | Triage Finance => aferraz |
2016-02-05 14:00 | aferraz | Note Added: 0083975 | |
2016-02-05 14:01 | aferraz | Note Added: 0083976 | |
2016-02-05 14:34 | aferraz | Note Edited: 0083975 | bug_revision_view_page.php?bugnote_id=0083975#r10971 |
2016-02-05 14:34 | aferraz | Note Edited: 0083976 | bug_revision_view_page.php?bugnote_id=0083976#r10973 |
2016-02-08 14:16 | psanjuan | Note Added: 0084003 | |
2016-02-08 15:28 | psanjuan | Note Edited: 0083975 | bug_revision_view_page.php?bugnote_id=0083975#r10984 |
2016-02-08 15:29 | psanjuan | Note Edited: 0083976 | bug_revision_view_page.php?bugnote_id=0083976#r10985 |
2016-02-08 15:31 | psanjuan | Note Edited: 0083975 | bug_revision_view_page.php?bugnote_id=0083975#r10986 |
2016-02-08 15:32 | psanjuan | Note Edited: 0083976 | bug_revision_view_page.php?bugnote_id=0083976#r10987 |
2016-02-08 15:33 | psanjuan | Note Edited: 0083976 | bug_revision_view_page.php?bugnote_id=0083976#r10988 |
2016-02-08 15:34 | psanjuan | Note Edited: 0083976 | bug_revision_view_page.php?bugnote_id=0083976#r10989 |
2016-02-08 15:35 | psanjuan | Note Edited: 0083976 | bug_revision_view_page.php?bugnote_id=0083976#r10990 |
2016-02-08 15:42 | psanjuan | Note Edited: 0083975 | bug_revision_view_page.php?bugnote_id=0083975#r10991 |
2016-02-08 15:46 | psanjuan | Note Added: 0084006 | |
2016-02-08 15:47 | psanjuan | Note Edited: 0083976 | bug_revision_view_page.php?bugnote_id=0083976#r10992 |
2016-02-08 15:48 | psanjuan | Note Edited: 0084006 | bug_revision_view_page.php?bugnote_id=0084006#r10994 |
2016-02-15 19:20 | hgbot | Checkin | |
2016-02-15 19:20 | hgbot | Note Added: 0084220 | |
2016-02-15 19:20 | hgbot | Status | scheduled => resolved |
2016-02-15 19:20 | hgbot | Resolution | open => fixed |
2016-02-15 19:20 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0301db6b51d57e7b804d5d0f8fff5259b87d4f94 [^] |
2016-02-15 19:21 | dmiguelez | Review Assigned To | => dmiguelez |
2016-02-15 19:21 | dmiguelez | Note Added: 0084221 | |
2016-02-15 19:21 | dmiguelez | Status | resolved => closed |
2016-03-17 10:56 | hudsonbot | Checkin | |
2016-03-17 10:56 | hudsonbot | Note Added: 0085141 | |
Notes |
|
(0083975)
|
aferraz
|
2016-02-05 14:00
(edited on: 2016-02-08 15:41) |
|
Test plan I:
As group admin role:
Create the Enable Stock Reservations preference
Create a Sales Order
Add 10 units for a product with stock and complete it
Click on Manage Reservation and reserve the whole quantity as allocated
Check that a stock reservation related to the sales order line has been created.
Generate a direct Picking List but do not process it
Go to the Sales Order an decrease the reserved amount
Go to the Picking list and delete the line
Go to the Sales order and check that stock reservation has been deleted
Repeat the same flow with more than one sales order line, therefore there is more than one stock reservation. Check that stock reservations are deleted.
|
|
|
(0083976)
|
aferraz
|
2016-02-05 14:01
(edited on: 2016-02-08 15:47) |
|
Test plan II:
As group admin role:
Create the Enable Stock Reservations preference
Set RN-Dev locator as "Outbound" Storage Bin Type in Warehouse and Storage Bins window, Storage Bin tab.
Create a Sales Order
Add 10 units for a product with stock and complete it
Click on Manage Reservation and reserve the whole quantity as allocated
Check that a stock reservation related to the sales order line has been created.
Generate an outbound Picking List but do not process it
Go to the Sales Order an decrease the reserved amount
Go to the "Outbond" Picking list, edit the line by using "Edit Item" process button and un-select it
Go to the Sales order and check that stock reservation has been deleted
|
|
|
|
|
|
(0084006)
|
psanjuan
|
2016-02-08 15:46
(edited on: 2016-02-08 15:48) |
|
Test Plan above verified.
Issue can be code reviewed and closed.
As a side note:
In the case of changing the reserved amount, regardless it should not be allowed to do so whenever a picking list has already been created, stock reservations related are now being deleted, therefore it is required to reserve the goods once again and generate the picking list once again.
|
|
|
(0084220)
|
hgbot
|
2016-02-15 19:20
|
|
Repository: erp/devel/pi
Changeset: 0301db6b51d57e7b804d5d0f8fff5259b87d4f94
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Feb 05 14:06:10 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0301db6b51d57e7b804d5d0f8fff5259b87d4f94 [^]
Fixes issue 31952: Avoid negative reservations
Set quantity to zero in case quantity + p_qty is less than zero when updating current m_reservation_stock in M_RESERVE_STOCK_MANUAL, to avoid create negative reservations.
---
M src-db/database/model/functions/M_RESERVE_STOCK_MANUAL.xml
---
|
|
|
|
|
|
|
|