Openbravo Issue Tracking System - POS2
View Issue Details
0049394POS2POSpublic2022-05-24 18:592022-05-24 18:59
mtaal 
Retail 
normalminorhave not tried
newopen 
5
 
 
No
0049394: New scan event handlers with lower prio than the CrmConnector is never reached
The current implementation of the CrmConnectorScanEventHandler does not correctly (imv) handle the case that its scanning didn't return a customer.

A eventHandled:true is returned making it impossible to add new scan event handlers with a lower priority.

Add a new scan event handler with a low prio. Run this test code:
setTimeout(function() {
    OB.App.BarcodeScanner.scanCode({code: 'ABC123'});
}, 2000);

The new scan event handler is never called as before that the CrmConnector works (if enabled)
Change the code [1] here to return eventHandled: false

[1]
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/services/scan/handlers/CrmConnectorScanEventHandler.js#L48 [^]
No tags attached.
Issue History
2022-05-24 18:59mtaalNew Issue
2022-05-24 18:59mtaalAssigned To => Retail
2022-05-24 18:59mtaalTriggers an Emergency Pack => No

There are no notes attached to this issue.