feat(CardAssignment): support EAN13
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user