fix(logistics): correction to the lane grab

This commit is contained in:
2025-03-26 09:16:16 -05:00
parent 58f7b4322d
commit 2d4b1db5f4
2 changed files with 3 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ export const returnMaterial = async (data: Data, prod: any) => {
// get the lane id by name
const laneQuery = laneInfo.replaceAll("[laneName]", laneName);
let barcode;
// get the barcode from the running number
try {
@@ -45,7 +46,7 @@ export const returnMaterial = async (data: Data, prod: any) => {
};
}
if (laneData) {
if (!laneData) {
return {
success: false,
message: