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
|
// 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:
|
||||||
|
|||||||
@@ -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]'
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user