fix(commands): corrections to allow external labels to be consumed and transfered
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user