Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031907Openbravo ERP04. Warehouse managementpublic2016-01-15 11:102016-02-09 10:25
aferraz 
aferraz 
immediatemajoralways
closedfixed 
30Professional Appliance
 
3.0PR16Q1 
dmiguelez
Core
Production - QA Approved
2015-06-22
3.0PR15Q4
https://code.openbravo.com/erp/devel/pi/rev/e03c1808e1952c20ef838c8a8b976cff802d5156 [^]
No
0031907: Cannot void a goods shipment if it has related reservation and there is less stock than double of shipment quantity
Cannot void a goods shipment if it has related reservation and there is less stock than double of shipment quantity
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=29 in RN-0-0-0 locator.
   Create a sales order, add the previously created product and qty=15. Complete it.
   Add a complete reservation to it (qty=15 in RN-0-0-0).
   Create a shipment from sales order with qty=15 in RN-0-0-0. Complete it.
   Try to void the shipment. An empty error message is shown.
No tags attached.
blocks defect 00319023.0PR16Q2 closed aferraz Cannot void a goods shipment if it has related reservation and there is less stock than double of shipment quantity 
Issue History
2016-01-15 12:42aferrazTypedefect => backport
2016-01-15 12:42aferrazTarget Version3.0PR16Q2 => 3.0PR16Q1
2016-01-22 12:04aferrazAssigned ToTriage Finance => aferraz
2016-02-09 10:25hgbotCheckin
2016-02-09 10:25hgbotNote Added: 0084040
2016-02-09 10:25hgbotStatusscheduled => resolved
2016-02-09 10:25hgbotResolutionopen => fixed
2016-02-09 10:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q1/rev/fb23aa4df32ec39178f300e7b52627297359a898 [^]
2016-02-09 10:25dmiguelezReview Assigned To => dmiguelez
2016-02-09 10:25dmiguelezNote Added: 0084043
2016-02-09 10:25dmiguelezStatusresolved => closed

Notes
(0084040)
hgbot   
2016-02-09 10:25   
Repository: erp/backports/3.0PR16Q1
Changeset: fb23aa4df32ec39178f300e7b52627297359a898
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.0PR16Q1/rev/fb23aa4df32ec39178f300e7b52627297359a898 [^]

Fixes issue 31915 & Fixes issue 31907 & Fixes issue 31957: 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
---
(0084043)
dmiguelez   
2016-02-09 10:25   
Code Review + Testing Ok