Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044322Retail ModulesWeb POSpublic2020-06-09 08:222020-07-09 14:31
ngarcia 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR20Q1.3RR20Q1.3 
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
0044322: 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 => RR20Q1.3
2020-06-22 07:32hgbotCheckin
2020-06-22 07:32hgbotNote Added: 0120944
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.0RR20Q1.3/org.openbravo.retail.posterminal/rev/a14ccd086094f99ebe0415ebee6afba43fb4e6a7 [^]
2020-06-29 12:42marvintmReview Assigned To => marvintm
2020-06-29 12:42marvintmStatusresolved => closed
2020-06-29 12:42marvintmFixed in Version => RR20Q1.3
2020-07-09 14:14hgbotStatusclosed => resolved
2020-07-09 14:14hgbotNote Added: 0121358
2020-07-09 14:31shuehnerNote Added: 0121365
2020-07-09 14:31shuehnerStatusresolved => closed

Notes
(0120944)
hgbot   
2020-06-22 07:32   
Repository: retail/backports/3.0RR20Q1.3/org.openbravo.retail.posterminal
Changeset: a14ccd086094f99ebe0415ebee6afba43fb4e6a7
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.0RR20Q1.3/org.openbravo.retail.posterminal/rev/a14ccd086094f99ebe0415ebee6afba43fb4e6a7 [^]

Fixed issue-44322: 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
---
(0121358)
hgbot   
2020-07-09 14:14   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: cc4c405a23bbfdd6f140989fbf6fc241651e0af8
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-07-09T12:13:46+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/cc4c405a23bbfdd6f140989fbf6fc241651e0af8 [^]

Fixed issue-44322: 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
---
(0121365)
shuehner   
2020-07-09 14:31   
Re-closing: Issues was just changed to resolved as side-effect of converting backport repos to gitlab release branch