fix(commands): corrections to allow external labels to be consumed and transfered

This commit is contained in:
2025-12-02 18:29:30 -06:00
parent 6833dfc992
commit 12345c0b64
4 changed files with 79 additions and 67 deletions

View File

@@ -168,6 +168,7 @@ export const lotMaterialTransfer = async (data: NewLotData) => {
),
)) as any;
console.log(label);
if (labelError) {
createLog(
"error",
@@ -274,7 +275,7 @@ export const lotMaterialTransfer = async (data: NewLotData) => {
// return the label back to fm1 lane id 10001
const matReturnData = {
barcode: label?.data[0].Barcode,
barcode: label?.data[0].barcode,
laneId: 10001,
};
@@ -300,7 +301,7 @@ export const lotMaterialTransfer = async (data: NewLotData) => {
// consume to the lot provided.
const consumeLot = {
productionLot: data.lotNumber,
barcode: label?.data[0].Barcode,
barcode: label?.data[0].barcode,
};
const delayTimer =