Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033282Retail ModulesWeb POSpublic2016-06-15 09:552016-06-21 09:03
guillermogil 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR16Q1.4RR16Q1.4 
marvintm
Production - Confirmed Stable
2015-03-08
RR15Q2
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c0a35478e6ff [^]
No
0033282: 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 => RR16Q1.4
2016-06-21 07:51ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-06-21 08:03hgbotCheckin
2016-06-21 08:03hgbotNote Added: 0087701
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.0RR16Q1.4/org.openbravo.retail.posterminal/rev/2aa10187ac30ed7eafa3f6e510522bf9f248a200 [^]
2016-06-21 09:03marvintmReview Assigned To => marvintm
2016-06-21 09:03marvintmStatusresolved => closed
2016-06-21 09:03marvintmFixed in Version => RR16Q1.4

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

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

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