|
|
|
|
@ -714,7 +714,7 @@ function getFromWarehouseOptions(row) {
|
|
|
|
|
function getFromAreaOptions(row) {
|
|
|
|
|
if (!row.fromWarehouseId) return []
|
|
|
|
|
const areaOptions = (row.productStockList || []).filter(
|
|
|
|
|
(item) => Number(getStockWarehouseId(item)) === String(row.fromWarehouseId)
|
|
|
|
|
(item) => String(getStockWarehouseId(item)) === String(row.fromWarehouseId)
|
|
|
|
|
)
|
|
|
|
|
return appendOptionIfMissing(
|
|
|
|
|
areaOptions,
|
|
|
|
|
@ -779,8 +779,8 @@ async function setStockCount(row) {
|
|
|
|
|
}
|
|
|
|
|
const stock = row.productStockList.find(
|
|
|
|
|
(item) =>
|
|
|
|
|
Number(getStockWarehouseId(item)) === Number(row.fromWarehouseId) &&
|
|
|
|
|
Number(getStockAreaId(item)) === String(row.fromAreaId)
|
|
|
|
|
String(getStockWarehouseId(item)) === String(row.fromWarehouseId) &&
|
|
|
|
|
String(getStockAreaId(item)) === String(row.fromAreaId)
|
|
|
|
|
)
|
|
|
|
|
row.stockCount = stock ? getStockCount(stock) : 0
|
|
|
|
|
}
|
|
|
|
|
|