feat(CardAssignment): support EAN13

This commit is contained in:
Philipp Dormann 2025-04-25 15:14:31 +02:00
parent 98a3b07237
commit 8e314f8676
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314

View File

@ -389,6 +389,12 @@
:paused={!scannerActive}
on:detect={(e) => {
if (scannerActive) {
if (`${e.detail.decodedText}`.length === 13) {
e.detail.decodedText = e.detail.decodedText.substring(
0,
e.detail.decodedText.length - 1
);
}
scannerActive = false;
console.log({ type: "DETECT", code: e.detail.decodedText });
if (runnerinfo.id === 0) {