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

View File

@@ -3,5 +3,5 @@ select IdLagerAbteilung as laneID,
Bezeichnung as laneName Bezeichnung as laneName
from AlplaPROD_test1.dbo.T_LagerAbteilungen from AlplaPROD_test1.dbo.T_LagerAbteilungen
where Aktiv = 1 where Aktiv = 1
and Bezeichnung = [laneName] and Bezeichnung = '[laneName]'
`; `;