test(rfid): more rfid work and tested working

This commit is contained in:
2025-04-17 18:42:29 -05:00
parent af8d53cac1
commit a68a3ba640
5 changed files with 62 additions and 16 deletions

View File

@@ -67,18 +67,19 @@ export const wrapperStuff = async (tagData: any) => {
"rfid",
`${tagData[0].tag}, Did not come from a line please check the pallet and manually print the label.`
);
tagStuff(tagData);
monitorChecks();
return {
success: false,
message: `${tagData[0].tag}, Did not come from a line please check the pallet and manually print the label.`,
};
}
if (lines[0].runningNumber) {
if (lines[0]?.runningNumber) {
createLog(
"info",
"rfid",
"rfid",
`Reprint label ${lines[0].runningNumber}`
`Reprint label ${lines[0]?.runningNumber}`
);
} else {
createLog(
@@ -88,7 +89,7 @@ export const wrapperStuff = async (tagData: any) => {
`A new label will be created and linked to this ${tagData[0].tag} tag`
);
const lineNum = parseInt(
checkTag[0]?.lastareaIn.repalceAll("line3", "")
checkTag[0]?.lastareaIn.replace("line3.", "")
);
createLog(
"info",