|
|
@ -219,11 +219,16 @@ export function byPacking(label, locationCode, fromInventoryStatuses, callback) |
|
|
|
action: "==", |
|
|
|
value: locationCode |
|
|
|
}) |
|
|
|
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { |
|
|
|
if (fromInventoryStatuses) { |
|
|
|
let status = "" |
|
|
|
fromInventoryStatuses.forEach(res => { |
|
|
|
status = res + "," |
|
|
|
}) |
|
|
|
|
|
|
|
filters.push({ |
|
|
|
column: "inventoryStatus", |
|
|
|
action: "in", |
|
|
|
value: fromInventoryStatuses |
|
|
|
value: status |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
@ -282,11 +287,16 @@ export function byBatch(label, locationCode, fromInventoryStatuses, callback) { |
|
|
|
value: locationCode |
|
|
|
}) |
|
|
|
|
|
|
|
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { |
|
|
|
if (fromInventoryStatuses) { |
|
|
|
let status = "" |
|
|
|
fromInventoryStatuses.forEach(res => { |
|
|
|
status = res + "," |
|
|
|
}) |
|
|
|
|
|
|
|
filters.push({ |
|
|
|
column: "inventoryStatus", |
|
|
|
action: "in", |
|
|
|
value: fromInventoryStatuses |
|
|
|
value: status |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
@ -332,7 +342,7 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback) |
|
|
|
data: {} |
|
|
|
}; |
|
|
|
|
|
|
|
var filters = [] |
|
|
|
let filters = [] |
|
|
|
filters.push({ |
|
|
|
column: "itemCode", |
|
|
|
action: "==", |
|
|
@ -354,11 +364,16 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback) |
|
|
|
value: locationCode |
|
|
|
}) |
|
|
|
|
|
|
|
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { |
|
|
|
if (fromInventoryStatuses) { |
|
|
|
var status = "" |
|
|
|
fromInventoryStatuses.forEach(res => { |
|
|
|
status = res + "," |
|
|
|
}) |
|
|
|
|
|
|
|
filters.push({ |
|
|
|
column: "inventoryStatus", |
|
|
|
action: "in", |
|
|
|
value: fromInventoryStatuses |
|
|
|
value: status |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
@ -401,18 +416,23 @@ export function byUniqueId(label, locationCode, fromInventoryStatuses, callback) |
|
|
|
data: {} |
|
|
|
}; |
|
|
|
|
|
|
|
var filters = [] |
|
|
|
let filters = [] |
|
|
|
filters.push({ |
|
|
|
column: "packingNumber", |
|
|
|
action: "==", |
|
|
|
value: label.packingNumber |
|
|
|
}) |
|
|
|
|
|
|
|
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { |
|
|
|
if (fromInventoryStatuses) { |
|
|
|
var status = "" |
|
|
|
fromInventoryStatuses.forEach(res => { |
|
|
|
status = res + "," |
|
|
|
}) |
|
|
|
|
|
|
|
filters.push({ |
|
|
|
column: "inventoryStatus", |
|
|
|
action: "in", |
|
|
|
value: fromInventoryStatuses |
|
|
|
value: status |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|