Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031916Openbravo ERP04. Warehouse managementpublic2016-01-13 18:512016-02-09 10:23
ngarcia 
aferraz 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q4.3 
dmiguelez
Core
No
0031916: Cannot void a goods shipment if two lines are related with the same sales order line which is reserved and released
Cannot void a goods shipment if two lines are related with the same sales order line which is reserved and released
As group admin role:
   Create the Enable Stock Reservations preference
   Log out and log in
   Create a product and add stock to it in two storage bins
   Create a sales order, add the previously created product and a quantity bigger than the available in each of the bins but less than the sum of the quantity in both bins.
   Complete it
   Add a complete reservation to it, with stock from the two bins
   Launch the Create Shipments from Orders process
   Go to Goods Shipment window and try to Void it
   An empty error message is shown
No tags attached.
blocks defect 00318763.0PR16Q2 closed aferraz Cannot void a goods shipment if two lines are related with the same sales order line which is reserved and released 
Issue History
2016-01-15 14:19aferrazTypedefect => backport
2016-01-15 14:19aferrazTarget Version => 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: 0084033
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:23dmiguelezReview Assigned To => dmiguelez
2016-02-09 10:23dmiguelezNote Added: 0084036
2016-02-09 10:23dmiguelezStatusresolved => closed

Notes
(0084033)
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
---
(0084036)
dmiguelez   
2016-02-09 10:23   
Code Review + Testing Ok