Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030961Openbravo ERP04. Warehouse managementpublic2015-09-29 14:172015-11-23 21:17
ngarcia 
aferraz 
urgentmajoralways
closedfixed 
5
 
3.0PR16Q1 
dmiguelez
Core
No
0030961: Sales Order lines cannot be partially delivered if there is not enough stock due to the warehouse rule but there is more stock
Sales Order lines cannot be partially delivered if there is not enough stock due to the warehouse rule but there is more available stock in the on hand warehouses that do not fulfill the rule:

- If all the available stock complies with the rule, a partial shipment is made
- If there is some stock that does not comply with the rule, the partial shipment is not made
   Create a warehouse rule which removes only some records of the m_stock_proposed table (for instance, the ones that do not belong to España Región Norte warehouse)
As group admin role:
   Check a product which has stock in Norte and Sur warehouses
   Create a sales order for F&B España, S.A. with that product but a higher quantity than the quantity available in the Norte warehouse
   Set that rule on its line
   Book it
   Go to Create Shipments from Orders and select the previously created order
   An error message is shown with the warehouse's names (This is another problem as the message that was intended to be shown was NotEnoughStockedDueWHRule)
   Leave only stock in the Norte warehouse
   Go to Create Shipments from Orders and select the previously created order
   Check the shipment is partially created and the following warning is shown:
      Warning
Order No. <> Shipment No. <>: Order partially delivered.
Order line: 10 for product <>: Not enough stock to complete the line, partially delivered.
Verify the checks made in the M_GET_STOCK_PARAM function after applying the Warehouse Rules
No tags attached.
related to defect 0022231 closed gorkaion Qty on hand warehouses and rules 
Issue History
2015-09-29 14:17ngarciaNew Issue
2015-09-29 14:17ngarciaAssigned To => Triage Finance
2015-09-29 14:17ngarciaModules => Core
2015-09-29 14:17ngarciaTriggers an Emergency Pack => No
2015-09-29 14:19ngarciaDescription Updatedbug_revision_view_page.php?rev_id=9506#r9506
2015-09-29 14:19ngarciaIssue Monitored: networkb
2015-09-29 14:32ngarciaRelationship addedrelated to 0022231
2015-09-29 17:07ngarciaResolution time => 1446073200
2015-09-29 17:07ngarciaTypefeature request => defect
2015-09-29 17:07ngarciaSummaryIt would be fine if sales order lines could be partially delivered although there is not enough stock due to the warehouse rule => Sales Order lines cannot be partially delivered if there is not enough stock due to the warehouse rule but there is more stock
2015-09-29 17:07ngarciaDescription Updatedbug_revision_view_page.php?rev_id=9515#r9515
2015-09-29 17:07ngarciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9517#r9517
2015-09-29 17:12ngarciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9520#r9520
2015-09-29 17:12ngarciaProposed Solution updated
2015-10-19 10:02AtulOpenbravoAssigned ToTriage Finance => AtulOpenbravo
2015-10-28 11:17vmromanosStatusnew => scheduled
2015-11-12 17:33hgbotCheckin
2015-11-12 17:33hgbotNote Added: 0081764
2015-11-12 17:33hgbotStatusscheduled => resolved
2015-11-12 17:33hgbotResolutionopen => fixed
2015-11-12 17:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e991e8220a8a5713a126cf95b7d85c9c4b275c81 [^]
2015-11-12 17:33aferrazAssigned ToAtulOpenbravo => aferraz
2015-11-12 17:35aferrazReview Assigned To => dmiguelez
2015-11-12 17:35aferrazNote Added: 0081765
2015-11-12 17:35aferrazStatusresolved => closed
2015-11-12 17:35aferrazFixed in Version => 3.0PR16Q1
2015-11-23 21:17hudsonbotCheckin
2015-11-23 21:17hudsonbotNote Added: 0082211

Notes
(0081764)
hgbot   
2015-11-12 17:33   
Repository: erp/devel/pi
Changeset: e991e8220a8a5713a126cf95b7d85c9c4b275c81
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Nov 12 17:32:58 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e991e8220a8a5713a126cf95b7d85c9c4b275c81 [^]

Fixes issue 30961: Warehouse rules will now make partial reservations

Warehouse rules will now make partial reservations in case it exists stock for the reservation but not enough to cover it completely.

---
M src-db/database/model/functions/M_GET_STOCK_PARAM.xml
---
(0081765)
aferraz   
2015-11-12 17:35   
Code review + Testing OK done by dmiguelez.
Functional API change published (PR16Q1.3): http://wiki.openbravo.com/wiki/API_changes [^]
(0082211)
hudsonbot   
2015-11-23 21:17   
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/7b56bebaaa88 [^]
Maturity status: Test