Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044321Retail ModulesWeb POSpublic2020-06-09 08:222020-07-09 14:35
ngarcia 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR20Q2.1RR20Q2.1 
marvintm
Production - Confirmed Stable
2019-06-03
RR19Q3
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/b79ed9224f77/web/org.openbravo.retail.posterminal/js/pointofsale/view/ps-productdetailsview.js#l42 [^]
No
0044321: JS error when checking the stock of a product if Enable Remote for Product preference is set to Y
JS error when checking the stock of a product if Enable Remote for Product preference is set to Y

The leftSubWindow.organization property is null in the following line:

    if (
      OB.MobileApp.model.hasPermission('OBPOS_remote.product', true) &&
      !OB.UTIL.isCrossStoreOrganization(leftSubWindow.organization)
    )
In the backoffice:
   Set the Enable Remote for Product preference to Y and Selected

In the POS:
   Add a product
   Select the line
   Show More
   Check Stock
   Other stores stock

The following JS error is shown:
   Cannot read property 'id' of undefined
    at Object.OB.UTIL.isCrossStoreOrganization (c62c225354c303a97cc7c26e5b21b763.js:69132)
    at Object.tap (c62c225354c303a97cc7c26e5b21b763.js:104716)
No tags attached.
blocks defect 0044311 closed ranjith_qualiantech_com JS error when checking the stock of a product if Enable Remote for Product preference is set to Y 
Issue History
2020-06-09 15:53ranjith_qualiantech_comTypedefect => backport
2020-06-09 15:53ranjith_qualiantech_comTarget Version => RR20Q2.1
2020-06-22 07:32hgbotCheckin
2020-06-22 07:32hgbotNote Added: 0120943
2020-06-22 07:32hgbotStatusscheduled => resolved
2020-06-22 07:32hgbotResolutionopen => fixed
2020-06-22 07:32hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR20Q2.1/org.openbravo.retail.posterminal/rev/89a766d7cfe39c5dd091a2afc9e2bbdfe0a8fb75 [^]
2020-06-29 12:41marvintmReview Assigned To => marvintm
2020-06-29 12:41marvintmStatusresolved => closed
2020-06-29 12:41marvintmFixed in Version => RR20Q2.1
2020-07-09 14:29hgbotStatusclosed => resolved
2020-07-09 14:29hgbotNote Added: 0121362
2020-07-09 14:35shuehnerNote Added: 0121369
2020-07-09 14:35shuehnerStatusresolved => closed

Notes
(0120943)
hgbot   
2020-06-22 07:32   
Repository: retail/backports/3.0RR20Q2.1/org.openbravo.retail.posterminal
Changeset: 89a766d7cfe39c5dd091a2afc9e2bbdfe0a8fb75
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jun 19 13:06:42 2020 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR20Q2.1/org.openbravo.retail.posterminal/rev/89a766d7cfe39c5dd091a2afc9e2bbdfe0a8fb75 [^]

Fixed issue-44321: Added organization to show other store stock

* When opening Other store stock in Stock View,
  terminal organization should be used if leftSubWindow org is not availalbe

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ps-productdetailsview.js
---
(0121362)
hgbot   
2020-07-09 14:29   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 85d5226f7ad61b657e112af7ffb1cbebc20a3eee
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-07-09T12:28:53+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/85d5226f7ad61b657e112af7ffb1cbebc20a3eee [^]

Fixed issue-44321: Added organization to show other store stock

* When opening Other store stock in Stock View,
  terminal organization should be used if leftSubWindow org is not availalbe

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ps-productdetailsview.js
---
(0121369)
shuehner   
2020-07-09 14:35   
Re-closing: Issues was just changed to resolved as side-effect of converting backport repos to gitlab release branch