Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0031956 | Openbravo ERP | 04. Warehouse management | public | 2016-01-19 18:15 | 2016-04-08 11:00 |
|
Reporter | aferraz | |
Assigned To | aferraz | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | Professional Appliance |
Product Version | | |
Target Version | 3.0PR16Q2 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | dmiguelez |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Production - QA Approved |
Regression date | 2015-06-22 |
Regression introduced in release | 3.0PR15Q4 |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/e03c1808e1952c20ef838c8a8b976cff802d5156 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0031956: Cannot void a goods shipment if it has related reservation under some circumstances |
Description | Cannot void a goods shipment if it has related reservation under some circumstances |
Steps To Reproduce | As group admin role:
Create the Enable Stock Reservations preference
Log out and log in
Create a product for España and add a price list for "Tarifa de Bebidas Alegres" and "Tarifa de ventas" .
Create a receipt for created product, qty=25 in RN-0-0-0 locator.
Create a sales order, add the previously created product and qty=25. Complete it.
Add a complete reservation to it (qty=25 in RN-0-0-0).
Create a shipment from sales order with qty=20 in RN-0-0-0. Complete it.
Create another shipment from sales order with qty=5 in RN-0-0-0. Complete it.
Try to void the second shipment. An empty error message is shown. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0031876 | 3.0PR16Q2 | closed | aferraz | Cannot void a goods shipment if two lines are related with the same sales order line which is reserved and released | related to | defect | 0031799 | 3.0PR16Q2 | closed | aferraz | Cannot void a goods shipment if it has more than one closed reservation associated | related to | defect | 0031902 | 3.0PR16Q2 | closed | aferraz | Cannot void a goods shipment if it has related reservation and there is less stock than double of shipment quantity | depends on | backport | 0031957 | 3.0PR16Q1 | closed | aferraz | Cannot void a goods shipment if it has related reservation under some circumstances | depends on | backport | 0031958 | 3.0PR15Q4.3 | closed | aferraz | Cannot void a goods shipment if it has related reservation under some circumstances | caused by | defect | 0028645 | | closed | vmromanos | It would be nice to be able to reserve more qty than the qty of the order if you have defined the 'is qty variable' | related to | defect | 0033752 | | closed | markmm82 | Cannot close an order if the stock was reserved and the associated goods shipment is voided |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-01-19 18:15 | aferraz | New Issue | |
2016-01-19 18:15 | aferraz | Assigned To | => aferraz |
2016-01-19 18:15 | aferraz | Modules | => Core |
2016-01-19 18:15 | aferraz | Regression level | => Production - QA Approved |
2016-01-19 18:15 | aferraz | Regression date | => 2015-06-22 |
2016-01-19 18:15 | aferraz | Regression introduced in release | => 3.0PR15Q4 |
2016-01-19 18:15 | aferraz | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/e03c1808e1952c20ef838c8a8b976cff802d5156 [^] |
2016-01-19 18:15 | aferraz | Triggers an Emergency Pack | => No |
2016-01-19 18:16 | aferraz | Relationship added | caused by 0028645 |
2016-01-19 18:16 | aferraz | Relationship added | related to 0031876 |
2016-01-19 18:16 | aferraz | Relationship added | related to 0031799 |
2016-01-19 18:17 | aferraz | Relationship added | related to 0031902 |
2016-01-19 18:17 | aferraz | Status | new => scheduled |
2016-01-20 13:08 | aferraz | Note Added: 0083453 | |
2016-01-20 13:49 | aferraz | Note Added: 0083457 | |
2016-01-21 15:49 | psanjuan | Note Added: 0083504 | |
2016-02-04 09:36 | psanjuan | Note Edited: 0083453 | bug_revision_view_page.php?bugnote_id=0083453#r10899 |
2016-02-04 09:39 | psanjuan | Note Edited: 0083453 | bug_revision_view_page.php?bugnote_id=0083453#r10900 |
2016-02-04 09:55 | psanjuan | Note Edited: 0083457 | bug_revision_view_page.php?bugnote_id=0083457#r10902 |
2016-02-04 09:58 | psanjuan | Note Edited: 0083504 | bug_revision_view_page.php?bugnote_id=0083504#r10904 |
2016-02-04 10:02 | psanjuan | Note Added: 0083915 | |
2016-02-04 10:06 | psanjuan | Note Edited: 0083915 | bug_revision_view_page.php?bugnote_id=0083915#r10906 |
2016-02-04 10:08 | psanjuan | Note Edited: 0083915 | bug_revision_view_page.php?bugnote_id=0083915#r10907 |
2016-02-04 10:08 | psanjuan | Note Edited: 0083915 | bug_revision_view_page.php?bugnote_id=0083915#r10908 |
2016-02-04 10:09 | psanjuan | Note Added: 0083916 | |
2016-02-09 10:26 | hgbot | Checkin | |
2016-02-09 10:26 | hgbot | Note Added: 0084047 | |
2016-02-09 10:26 | hgbot | Status | scheduled => resolved |
2016-02-09 10:26 | hgbot | Resolution | open => fixed |
2016-02-09 10:26 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d2a064ba63767e527efb2777e849702f98c06a45 [^] |
2016-02-09 10:28 | dmiguelez | Review Assigned To | => dmiguelez |
2016-02-09 10:28 | dmiguelez | Note Added: 0084048 | |
2016-02-09 10:28 | dmiguelez | Status | resolved => closed |
2016-02-19 13:35 | aferraz | Note Added: 0084372 | |
2016-03-17 10:56 | hudsonbot | Checkin | |
2016-03-17 10:56 | hudsonbot | Note Added: 0085120 | |
2016-04-08 11:00 | hgbot | Checkin | |
2016-04-08 11:00 | hgbot | Note Added: 0085520 | |
2016-08-20 21:54 | aferraz | Relationship added | related to 0033752 |
Notes |
|
(0083453)
|
aferraz
|
2016-01-20 13:08
(edited on: 2016-02-04 09:39) |
|
Test plan I:
As group admin role:
Create the Enable Stock Reservations preference
Log out and log in
Create a product for España and add a price list for "Tarifa de Bebidas Alegres" and "Tarifa de ventas" .
Create a receipt for created product, qty=25 in RN-0-0-0 locator.
Create a sales order, add the previously created product and qty=25. Complete it.
Add a complete reservation to it (qty=25 in RN-0-0-0).
Realize a stock reservation has been created with qty=25, reserved qty=25, released=0 and a line with qty=25 released=0 in RN-0-0-0.
Create a shipment from sales order with qty=20 in RN-0-0-0. Complete it.
Realize stock reservation has been updated with qty=25, reserved qty=25, released=20 and line with qty=25 released=20 in RN-0-0-0.
Create another shipment from sales order with qty=5 in RN-0-0-0. Complete it.
Realize stock reservation has been closed with qty=25, reserved qty=25, released=25 and line with qty=25 released=25 in RN-0-0-0.
Void second shipment.
Realize a new stock reservation has been created in completed status with qty=25, reserved qty=5, released=0 and line with qty=5 released=0 in RN-0-0-0.
Create another shipment from sales order, there are only 5 unit left to deliver from storage bin RN-0-0-0. Complete it.
Realize that the new stock reservation created in the step above is now set as closed with below data: Qty = 25, Reserved Qty = 5, Released = 5
|
|
|
(0083457)
|
aferraz
|
2016-01-20 13:49
(edited on: 2016-02-04 09:55) |
|
Test plan II:
As group admin role:
Create the Enable Stock Reservations preference
Log out and log in
Create a product for España and add a price list for "Tarifa de Bebidas Alegres" and "Tarifa de ventas" .
Create a receipt for created product, qty=25 in RN-0-0-0 locator.
Create a sales order, add the previously created product and qty=25. Complete it.
Add a complete reservation to it (qty=25 in RN-0-0-0).
Realize a stock reservation has been created with qty=25, reserved qty=25, released=0 and a line with qty=25 released=0 in RN-0-0-0.
Create a shipment from sales order with one line with qty=20 in RN-0-0-0 and a second line with qty=5 in RN-0-0-0. Complete it.
Realize stock reservation has been closed with qty=25, reserved qty=25, released=25 and line with qty=25 released=25 in RN-0-0-0.
Void the shipment.
Realize a new stock reservation has been created in completed status with qty=25, reserved qty=25, released=0 and line with qty=25 released=0 in RN-0-0-0.
|
|
|
(0083504)
|
psanjuan
|
2016-01-21 15:49
(edited on: 2016-02-04 09:58) |
|
Test plan III:
As group admin role:
Create the Enable Stock Reservations preference
Log out and log in
Create a product for España and add a price list for "Tarifa de Bebidas Alegres" and "Tarifa de ventas" .
Create a receipt for created product, qty=25 in RN-0-0-0 locator.
Create another receipt for created product, qty= 25 in RN-1-0-0 locator.
Create a sales order, add the previously created product and qty=50. Complete it.
Add a complete reservation to it (qty=25 in RN-0-0-0 and qty = 25 in RN-1-0-0).
Realize a stock reservation has been created with qty=50, reserved qty=50, released=0 and two lines one per each locator with qty=25 released=0
Create a shipment from sales order with two lines one per each locator, qty=25 each. Complete it.
Realize stock reservation has been closed with qty=50, reserved qty=50, released=505 and two lines one per each locator with qty=25 released=25
Void the shipment.
Realize a new stock reservation has been created in completed status with qty=50, reserved qty=50, released=0 and two lines one per each locator with qty=25 released=0
|
|
|
(0083915)
|
psanjuan
|
2016-02-04 10:02
(edited on: 2016-02-04 10:08) |
|
Test plan IV:
As group admin role:
Create the Enable Stock Reservations preference
Log out and log in
Create a product for España and add a price list for "Tarifa de Bebidas Alegres" and "Tarifa de ventas" .
Create a receipt for created product, qty=25 in RN-0-0-0 locator.
Create another receipt for created product, qty= 25 in RN-1-0-0 locator.
Create a sales order, add the previously created product and qty=50. Complete it.
Add a complete reservation to it (qty=25 in RN-0-0-0 and qty = 25 in RN-1-0-0).
Realize a stock reservation has been created with qty=50, reserved qty=50, released=0 and two lines one per each locator with qty=25 released=0
Create a shipment from sales order with two lines:
Qty = 20 from RN-0-0-0
Qty = 20 from Rn-1-0-0
Complete it.
Check that the stock reservation has been updated with qty=50, reserved qty=50, released=40 and two lines one per each locator with qty=25 released=20
Create another shipment from sales order with two lines:
Qty = 5 from RN-0-0-0
Qty = 5 from Rn-1-0-0
Complete it.
Check that the stock reservation has been updated to Closed with qty=50, reserved qty=50, released=50 and two lines one per each locator with qty=25 released=25
Void the second shipment.
Realize a new stock reservation has been created in completed status with qty=50, reserved qty=10, released=0 and two lines one per each locator with qty=5 released=0
|
|
|
|
Test Plan above verified.
Issue can be code reviewed and closed. |
|
|
(0084047)
|
hgbot
|
2016-02-09 10:26
|
|
Repository: erp/devel/pi
Changeset: d2a064ba63767e527efb2777e849702f98c06a45
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Feb 01 18:49:06 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d2a064ba63767e527efb2777e849702f98c06a45 [^]
Fixes issue 31876 & Fixes issue 31902 & Fixes issue 31956: Cannot void shipment
Cannot void shipment related to reservation.
New reservation to replace the closed related one when voiding a shipment will be done after update m_storage_detail, in order to have voided shipment quantity available.
Reservation stock lines will be created with related shipment line movement quantity in case this quantity is less than pending order quantity.
Reservation will be created with the least quantity between ordered quantity and movement quantity.
---
M src-db/database/model/functions/M_INOUT_POST.xml
---
|
|
|
|
|
|
|
|
|
|
|
|
(0085520)
|
hgbot
|
2016-04-08 11:00
|
|
Repository: tools/automation/int
Changeset: ce33be0195500e4c9f15e707b68f8c8c685bfec0
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed Feb 24 10:05:56 2016 +0100
URL: http://code.openbravo.com/tools/automation/int/rev/ce33be0195500e4c9f15e707b68f8c8c685bfec0 [^]
Related to issue 31876 & Related to issue 31902 & Related to issue 31956: Add an automated test
---
M src-test/com/openbravo/test/integration/erp/modules/client/application/gui/FormInputFieldFactory.java
M src-test/com/openbravo/test/integration/erp/modules/functionalteam/reservation/testsuites/RES_Regressions/RES_RegressionSuite.java
M src-test/com/openbravo/test/integration/erp/modules/functionalteam/reservation/testsuites/RES_Regressions/build.xml
M src-test/com/openbravo/test/integration/erp/testscripts/SmokeTabScript.java
A src-test/com/openbravo/test/integration/erp/modules/client/application/gui/searchitems/OrderSearchItem.java
A src-test/com/openbravo/test/integration/erp/modules/functionalteam/reservation/testsuites/RES_Regressions/RESRegression31876R31902R31956.java
---
|
|