Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041837Retail ModulesWeb POSpublic2019-09-18 12:562019-09-26 17:42
Production - Confirmed Stable
RR18Q1 [^]
0041837: Order Selector no longer verifies if an order is in error status (import entry error/error while importing)
In 17Q4, the fix for issue 0035058 added a check when loading an order, to prevent loading it in web pos if the order was present in an Error While Importing or in an error Import Entry.
In 18Q1 the Paid Receipts selector was refactored and a new selector was created (issue 0036936).
The new selector missed the logic to check if the receipt being opened was present in the errors table.
Login in Web POS
Create a new layaway, add a product and complete it by clicking on Layaway.
Load the same layaway in two different terminals. Pay it partially on both terminals.
When completing the second payment, a new record will be generated in Errors While Importing POS Data window due to an Outdated Change exception.
Verify that after that it is still possible to load the receipt in WebPOS
The check for records in import entry that currently exists for verified returns should be added to the code in charge of loading receipts on the standard selector:
This code:
                if (data[0].recordInImportEntry) {
                    OB.I18N.getLabel('OBPOS_ReceiptNotSynced', [

Should be added to orderLoaded function in orderSelectorUtils.js
No tags attached.
depends on backport 0041862RR19Q3.1 closed ranjith_qualiantech_com Order Selector no longer verifies if an order is in error status (import entry error/error while importing) 
depends on backport 0041863RR19Q2.3 closed ranjith_qualiantech_com Order Selector no longer verifies if an order is in error status (import entry error/error while importing) 
caused by feature request 0036936 closed aaroncalero It would be nice to have a single selector to retrieve any type of document in WebPOS 
Issue History
2019-09-18 12:56aaroncaleroNew Issue
2019-09-18 12:56aaroncaleroAssigned To => Retail
2019-09-18 12:56aaroncaleroResolution time => 1569967200
2019-09-18 12:56aaroncaleroRegression level => Production - Confirmed Stable
2019-09-18 12:56aaroncaleroRegression date => 2017-11-24
2019-09-18 12:56aaroncaleroRegression introduced in release => RR18Q1
2019-09-18 12:56aaroncaleroRegression introduced by commit => [^]
2019-09-18 12:56aaroncaleroTriggers an Emergency Pack => No
2019-09-18 12:57aaroncaleroRelationship addedcaused by 0036936
2019-09-19 12:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-09-20 07:51ranjith_qualiantech_comStatusnew => scheduled
2019-09-20 14:35marvintmStatusscheduled => acknowledged
2019-09-20 14:36marvintmStatusacknowledged => scheduled
2019-09-23 11:22hgbotCheckin
2019-09-23 11:22hgbotNote Added: 0114720
2019-09-23 11:22hgbotStatusscheduled => resolved
2019-09-23 11:22hgbotResolutionopen => fixed
2019-09-23 11:22hgbotFixed in SCM revision => [^]
2019-09-25 17:07jorge-garciaReview Assigned To => jorge-garcia
2019-09-25 17:44jorge-garciaNote Added: 0114787
2019-09-25 17:44jorge-garciaStatusresolved => new
2019-09-25 17:44jorge-garciaResolutionfixed => open
2019-09-26 08:08ranjith_qualiantech_comStatusnew => scheduled
2019-09-26 17:33hgbotCheckin
2019-09-26 17:33hgbotNote Added: 0114821
2019-09-26 17:33hgbotStatusscheduled => resolved
2019-09-26 17:33hgbotResolutionopen => fixed
2019-09-26 17:33hgbotFixed in SCM revision [^] => [^]
2019-09-26 17:42jorge-garciaNote Added: 0114823
2019-09-26 17:42jorge-garciaStatusresolved => closed
2019-09-26 17:42jorge-garciaFixed in Version => RR19Q4

2019-09-23 11:22   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: f96e970a4c125ce0f92dad4704c94de68d5ad69a
Author: Ranjith S R <ranjith <at>>
Date: Mon Sep 23 14:51:46 2019 +0530
URL: [^]

Fixed issue 41837 : Sync Error should be shown when opening the receipt in POS.

* If receipt presents in Import Error, then error "ReceiptNotSynced" should be shown
  when opening the receipt/layaway in the pos

M web/org.openbravo.retail.posterminal/js/utils/orderSelectorUtils.js
2019-09-25 17:44   
The issue is not completely correct.

After we detect the order is in Errors While Importing POS data (check of "data[0].recordInImportEntry") a popup is shown in the screen. After clicking OK on that confirmation popup, the user cannot load again any ticket using "Open Receipt" unless the application is refreshed.

The solution must include a statement to execute the errorCallback in case we detect the order is in Errors While Importing POS data ("data[0].recordInImportEntry" check).

This errorCallback should be invoked when the popup is closed.
2019-09-26 17:33   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 932a9c3e7c2b7f3a88460ef62562ad319d1a1bf1
Author: Ranjith S R <ranjith <at>>
Date: Thu Sep 26 21:02:39 2019 +0530
URL: [^]

Fixed issue 41837 : Open Receipt Selector should verify the receipt status of ImportEntry

* Added AD Message for Open Related ticket

M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.retail.posterminal/js/utils/orderSelectorUtils.js
2019-09-26 17:42   
Code reviewed and tested