|
@ -211,15 +211,21 @@ export function byPacking(label, locationCode, fromInventoryStatuses, callback) |
|
|
action: "==", |
|
|
action: "==", |
|
|
value: locationCode |
|
|
value: locationCode |
|
|
}) |
|
|
}) |
|
|
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { |
|
|
if (fromInventoryStatuses) { |
|
|
|
|
|
var status = "" |
|
|
|
|
|
fromInventoryStatuses.forEach(res => { |
|
|
|
|
|
status = res + "," |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
filters.push({ |
|
|
filters.push({ |
|
|
column: "inventoryStatus", |
|
|
column: "inventoryStatus", |
|
|
action: "in", |
|
|
action: "in", |
|
|
value: fromInventoryStatuses |
|
|
value: status |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var params = { |
|
|
var params = { |
|
|
filters: filters, |
|
|
filters: filters, |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
@ -274,11 +280,16 @@ export function byBatch(label, locationCode, fromInventoryStatuses, callback) { |
|
|
value: locationCode |
|
|
value: locationCode |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { |
|
|
if (fromInventoryStatuses) { |
|
|
|
|
|
var status = "" |
|
|
|
|
|
fromInventoryStatuses.forEach(res => { |
|
|
|
|
|
status = res + "," |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
filters.push({ |
|
|
filters.push({ |
|
|
column: "inventoryStatus", |
|
|
column: "inventoryStatus", |
|
|
action: "in", |
|
|
action: "in", |
|
|
value: fromInventoryStatuses |
|
|
value: status |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -346,11 +357,16 @@ export function byQuantity(label, locationCode, fromInventoryStatuses, callback) |
|
|
value: locationCode |
|
|
value: locationCode |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { |
|
|
if (fromInventoryStatuses) { |
|
|
|
|
|
var status = "" |
|
|
|
|
|
fromInventoryStatuses.forEach(res => { |
|
|
|
|
|
status = res + "," |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
filters.push({ |
|
|
filters.push({ |
|
|
column: "inventoryStatus", |
|
|
column: "inventoryStatus", |
|
|
action: "in", |
|
|
action: "in", |
|
|
value: fromInventoryStatuses |
|
|
value: status |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -400,11 +416,16 @@ export function byUniqueId(label, locationCode, fromInventoryStatuses, callback) |
|
|
value: label.packingNumber |
|
|
value: label.packingNumber |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
if (fromInventoryStatuses != null && fromInventoryStatuses != "") { |
|
|
if (fromInventoryStatuses) { |
|
|
|
|
|
var status = "" |
|
|
|
|
|
fromInventoryStatuses.forEach(res => { |
|
|
|
|
|
status = res + "," |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
filters.push({ |
|
|
filters.push({ |
|
|
column: "inventoryStatus", |
|
|
column: "inventoryStatus", |
|
|
action: "in", |
|
|
action: "in", |
|
|
value: fromInventoryStatuses |
|
|
value: status |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -474,4 +495,4 @@ export function balanceByLocation(locationCode, callback) { |
|
|
result.message = err.message; |
|
|
result.message = err.message; |
|
|
callback(result) |
|
|
callback(result) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |