Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031958Openbravo ERP04. Warehouse managementpublic2016-01-19 18:152016-02-09 10:24
aferraz 
aferraz 
immediatemajoralways
closedfixed 
30Professional Appliance
 
3.0PR15Q4.3 
dmiguelez
Core
Production - QA Approved
2015-06-22
3.0PR15Q4
https://code.openbravo.com/erp/devel/pi/rev/e03c1808e1952c20ef838c8a8b976cff802d5156 [^]
No
0031958: Cannot void a goods shipment if it has related reservation under some circumstances
Cannot void a goods shipment if it has related reservation under some circumstances
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.
No tags attached.
blocks defect 00319563.0PR16Q2 closed aferraz Cannot void a goods shipment if it has related reservation under some circumstances 
Issue History
2016-01-19 18:17aferrazTypedefect => backport
2016-01-19 18:17aferrazTarget Version3.0PR16Q2 => 3.0PR15Q4.2
2016-01-22 08:15vmromanosTarget Version3.0PR15Q4.2 => 3.0PR15Q4.3
2016-02-09 10:23hgbotCheckin
2016-02-09 10:23hgbotNote Added: 0084035
2016-02-09 10:23hgbotStatusscheduled => resolved
2016-02-09 10:23hgbotResolutionopen => fixed
2016-02-09 10:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q4.3/rev/7dbcbbf94ecf1b14c2ebd1f83acb4f9be4d6b1e6 [^]
2016-02-09 10:24dmiguelezReview Assigned To => dmiguelez
2016-02-09 10:24dmiguelezNote Added: 0084038
2016-02-09 10:24dmiguelezStatusresolved => closed

Notes
(0084035)
hgbot   
2016-02-09 10:23   
Repository: erp/backports/3.0PR15Q4.3
Changeset: 7dbcbbf94ecf1b14c2ebd1f83acb4f9be4d6b1e6
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Feb 01 18:49:06 2016 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4.3/rev/7dbcbbf94ecf1b14c2ebd1f83acb4f9be4d6b1e6 [^]

Fixes issue 31916 & Fixes issue 31908 & Fixes issue 31958: 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
---
(0084038)
dmiguelez   
2016-02-09 10:24   
Code Review + Testing Ok