Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033281Retail ModulesWeb POSpublic2016-06-15 09:552016-06-21 09:03
guillermogil 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR16Q2.1RR16Q2.1 
marvintm
Production - Confirmed Stable
2015-03-08
RR15Q2
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c0a35478e6ff [^]
No
0033281: M_GetStock in OrderLoader is not taking into account the Priority Warehouse
M_GetStock in OrderLoader is not taking into account the Priority Warehouse.
Once the new way to call M_getStock was implemented it change the behaviour and instead of sending the priority_warehouse the warehouse parameter gets sent.
Have 2 warehouses defined for the store, one with some qty for avalanche transceiver and other with none (The priority warehouse).
Then, on webPOS, add the avalanche transceiver and complete the sale.
You will see that on the priority warehouse you have negative stock.
Just change the call to:
StockUtils.getStock(processId, recordID, quantity, productId, null, null, warehouseId, orgId, attributesetinstanceId, OBContext.getOBContext().getUser().getId(), clientId, warehouseRuleId, uomId, null, null, null, null, null, reservationId, "N");
No tags attached.
blocks defect 0033268 closed ranjith_qualiantech_com M_GetStock in OrderLoader is not taking into account the Priority Warehouse 
Issue History
2016-06-16 09:23marvintmTypedefect => backport
2016-06-16 09:23marvintmTarget Version => RR16Q2.1
2016-06-21 07:51ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-06-21 08:03hgbotCheckin
2016-06-21 08:03hgbotNote Added: 0087699
2016-06-21 08:03hgbotStatusscheduled => resolved
2016-06-21 08:03hgbotResolutionopen => fixed
2016-06-21 08:03hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q2.1/org.openbravo.retail.posterminal/rev/d48eb43da477fe17cd34c51506d66d5226d3e3eb [^]
2016-06-21 09:03marvintmReview Assigned To => marvintm
2016-06-21 09:03marvintmStatusresolved => closed
2016-06-21 09:03marvintmFixed in Version => RR16Q2.1

Notes
(0087699)
hgbot   
2016-06-21 08:03   
Repository: retail/backports/3.0RR16Q2.1/org.openbravo.retail.posterminal
Changeset: d48eb43da477fe17cd34c51506d66d5226d3e3eb
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jun 21 11:23:01 2016 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.1/org.openbravo.retail.posterminal/rev/d48eb43da477fe17cd34c51506d66d5226d3e3eb [^]

Fixes issue 33281 : Order Loader getStock, warehouseId is replaced with priorityWarehouseId

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---