fix(logistics): correction to the lane grab
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user