Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044311Retail ModulesWeb POSpublic2020-06-09 08:222020-06-19 09:41
ngarcia 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR20Q3 
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
0044311: 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.
depends on backport 0044321RR20Q2.1 closed ranjith_qualiantech_com JS error when checking the stock of a product if Enable Remote for Product preference is set to Y 
depends on backport 0044322RR20Q1.3 closed ranjith_qualiantech_com JS error when checking the stock of a product if Enable Remote for Product preference is set to Y 
caused by feature request 0041006RR19Q3 closed aferraz Cross Store Sales project 
patch issue 44311 source posterminal.patch (1,709) 2020-06-10 09:38
https://issues.openbravo.com/file_download.php?file_id=14598&type=bug
Issue History
2020-06-09 08:22ngarciaNew Issue
2020-06-09 08:22ngarciaAssigned To => Retail
2020-06-09 08:22ngarciaResolution time => 1593468000
2020-06-09 08:22ngarciaTriggers an Emergency Pack => No
2020-06-09 08:30ngarciaIssue Monitored: networkb
2020-06-09 08:31ngarciaPriorityurgent => immediate
2020-06-09 09:21ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-06-09 10:44ranjith_qualiantech_comRegression level => Production - Confirmed Stable
2020-06-09 10:44ranjith_qualiantech_comRegression date => 2019-06-03
2020-06-09 10:44ranjith_qualiantech_comRegression introduced in release => RR19Q3
2020-06-09 10:44ranjith_qualiantech_comRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/b79ed9224f77/web/org.openbravo.retail.posterminal/js/pointofsale/view/ps-productdetailsview.js#l42 [^]
2020-06-09 15:53ranjith_qualiantech_comStatusnew => scheduled
2020-06-10 09:38ranjith_qualiantech_comFile Added: issue 44311 source posterminal.patch
2020-06-12 10:57dmitry_mezentsevRelationship addedcaused by 0041006
2020-06-19 09:39hgbotCheckin
2020-06-19 09:39hgbotNote Added: 0120916
2020-06-19 09:39hgbotStatusscheduled => resolved
2020-06-19 09:39hgbotResolutionopen => fixed
2020-06-19 09:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0c0ab564558ce176191421a46b8ef02509dbf93a [^]
2020-06-19 09:41marvintmReview Assigned To => marvintm
2020-06-19 09:41marvintmStatusresolved => closed
2020-06-19 09:41marvintmFixed in Version => RR20Q3

Notes
(0120916)
hgbot   
2020-06-19 09:39   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0c0ab564558ce176191421a46b8ef02509dbf93a
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jun 19 13:06:42 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0c0ab564558ce176191421a46b8ef02509dbf93a [^]

Fixed issue-44311: 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
---