Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023774Openbravo ERP07. Sales managementpublic2013-05-09 09:592013-05-23 01:33
maite 
ioritzCia 
immediatemajoralways
closedfixed 
5
 
 
Core
No
0023774: "Can not consume all the stock" error when trying to process shipment and working with stock reservation
"Can not consume all the stock" error when trying to process shipment and working with stock reservation
0. Access "Preferences" window and enable "Enable Stock Reservations" preference
1. Create "productLot" with attribute set "Lot" and define sales price list for it
2. Register Physical Inventory:
  * 5 units for "productLot" and attribute LA
  * 10 units for "productLot" and attribute LB
Process inventory
3. Register Sales Order adding line of 7 unit of "productLot" and set "Stock Reservation"=Manual and process order
4. Press "Manage Reservation" button in sales order header and reserve 5 units of "productLot" attribute LA and 2 units of "productLot" attribute LB
5. Create Goods Shipment header for same BP and "Create Lines From" selecting previous order. Access Shipment line and open product selector to select "productLot" attribute LB. Try to process shipment an error "Cannot consume all the stock" will be obtained

Should be possible to process shipment as enough stock is available
No tags attached.
has duplicate defect 0023768 closed dmiguelez Using Reservations, if there are reserved to different lots of same product, releasing only one fails. 
Issue History
2013-05-09 09:59maiteNew Issue
2013-05-09 09:59maiteAssigned To => dmiguelez
2013-05-09 09:59maiteModules => Core
2013-05-09 09:59maiteTriggers an Emergency Pack => No
2013-05-09 10:12maitePriorityurgent => immediate
2013-05-09 10:12maiteIssue Monitored: networkb
2013-05-09 16:57dmiguelezAssigned Todmiguelez => jonalegriaesarte
2013-05-09 17:33jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2013-05-10 12:19ioritzCiaStatusnew => scheduled
2013-05-10 12:19ioritzCiafix_in_branch => pi
2013-05-13 10:01hgbotCheckin
2013-05-13 10:01hgbotNote Added: 0058575
2013-05-13 10:01hgbotStatusscheduled => resolved
2013-05-13 10:01hgbotResolutionopen => fixed
2013-05-13 10:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/00cbf22c8ad6dd080bda99e0cc3fd870d06c9615 [^]
2013-05-13 10:22maiteNote Added: 0058576
2013-05-13 10:22maiteStatusresolved => closed
2013-05-13 11:00maiteRelationship addedhas duplicate 0023768
2013-05-23 01:33hudsonbotCheckin
2013-05-23 01:33hudsonbotNote Added: 0058806

Notes
(0058575)
hgbot   
2013-05-13 10:01   
Repository: erp/devel/pi
Changeset: 00cbf22c8ad6dd080bda99e0cc3fd870d06c9615
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Fri May 10 11:55:32 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/00cbf22c8ad6dd080bda99e0cc3fd870d06c9615 [^]

Fixes issue 23774: 'Can not consume all the stock' error when
 trying to process shipment and working with stock reservation.

---
M src-db/database/model/functions/M_RESERVATION_CONSUMPTION.xml
---
(0058576)
maite   
2013-05-13 10:22   
verified
(0058806)
hudsonbot   
2013-05-23 01:33   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/97c7f6256af7 [^]

Maturity status: Test