Commit 8d4ba412 by Yvon Kerdoncuff

Merge branch…

Merge branch '3862-in-shelf-inventory-stop-displaying-unwanted-popup-barcode-not-found' into 'migration-v12'

in shelf inventory, interrupt scan.pos.barcode event if fired from quantity…

See merge request !287
parents 34d61306 967171b2
......@@ -1256,6 +1256,14 @@ function init() {
}
});
$(document).on('scan.pos.barcode', function(event) {
//This events sometimes fire after user types some digits then press enter
//in the Quantity field.
//To avoid this, we return if focus is in Quantity field when events fires.
const focused = document.activeElement;
if ($(focused).is('#edition_input')) {
return;
}
//access `event.code` - barcode data
var barcode = event.code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment