Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031915Openbravo ERP04. Warehouse managementpublic2016-01-13 18:512016-02-09 10:25
ngarcia 
aferraz 
immediatemajoralways
closedfixed 
5
 
3.0PR16Q1 
dmiguelez
Core
No
0031915: 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.0PR16Q1
2016-02-09 10:25hgbotCheckin
2016-02-09 10:25hgbotNote Added: 0084039
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: 0084042
2016-02-09 10:25dmiguelezStatusresolved => closed

Notes
(0084039)
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
---
(0084042)
dmiguelez   
2016-02-09 10:25   
Code Review + Testing Ok