Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040380Retail ModulesWeb POSpublic2019-03-14 12:152019-03-21 16:53
samuel_nicuesa 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
pi 
 
migueldejuana
No
0040380: The focus is lost after completing one ticket if the preference OBPOS_closeDrawerBeforeContinue is Y
We need to register this hook OBPOS_PreOrderSave
[BO]

Configure the UPC of one product (Avalanche transceiver - 222)

Configure terminal type to use external input

Configure the preference Web POS Close Drawer Before Continue to Y

[POS]

Using developers tools > Console register this hook:

OB.UTIL.HookManager.registerHook('OBPOS_PreOrderSave', function(args, callbacks) {
  OB.Dal.find(OB.Model.Session, {}, function () {
    OB.UTIL.HookManager.callbackExecutor(args, callbacks);
  });
});


Create one ticket

Scan the product using UPC 222

Complete the ticket

Try to scan again the product using UPC 222.

You will need to click again on Scan button because the focus is lost.
No tags attached.
related to defect 0040513 closed ranjith_qualiantech_com The focus is lost after completing one ticket if one popup is opened when new ticket is created and previous ticket is deleted 
Issue History
2019-03-14 12:15samuel_nicuesaNew Issue
2019-03-14 12:15samuel_nicuesaAssigned To => Retail
2019-03-14 12:15samuel_nicuesaResolution time => 1554328800
2019-03-14 12:15samuel_nicuesaTriggers an Emergency Pack => No
2019-03-14 12:50ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-03-14 14:17ranjith_qualiantech_comStatusnew => scheduled
2019-03-15 11:05ranjith_qualiantech_comSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18474#r18474
2019-03-20 09:56hgbotCheckin
2019-03-20 09:56hgbotNote Added: 0110505
2019-03-20 09:56hgbotStatusscheduled => resolved
2019-03-20 09:56hgbotResolutionopen => fixed
2019-03-20 09:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7992c81022c6a9284fd6a3bda518aec74683439f [^]
2019-03-21 16:53migueldejuanaReview Assigned To => migueldejuana
2019-03-21 16:53migueldejuanaNote Added: 0110550
2019-03-21 16:53migueldejuanaStatusresolved => closed
2019-04-03 18:23malsasuaRelationship addedrelated to 0040513

Notes
(0110505)
hgbot   
2019-03-20 09:56   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7992c81022c6a9284fd6a3bda518aec74683439f
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Mar 20 14:25:43 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7992c81022c6a9284fd6a3bda518aec74683439f [^]

Fixed issue 40380 : Force Set Orginal ScanMode when completing the receipt

* When completing the receipt, Close drawer popup will be opened when Pref. Web POS Close Drawer Before Continue is enabled
  Before showing the Close drawer popup, scan mode has been updated as false to avoid user key input.
  To restore the scan mode properly, OriginalScanMode has to be updated before closing the receipt

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0110550)
migueldejuana   
2019-03-21 16:53   
Tested and reviewed