|
|
|
@@ -180,7 +180,6 @@ open class StockLedgerFixQueryService( |
|
|
|
sl.inventoryLotLineId IS NULL |
|
|
|
AND COALESCE(sol.inventoryLotLineId, sil.inventoryLotLineId) IS NULL |
|
|
|
AND (sil.inventoryLotId IS NULL OR IFNULL(lc.lineCnt, 0) = 0) |
|
|
|
AND (sl.stockInLineId IS NOT NULL OR sl.stockOutLineId IS NOT NULL) |
|
|
|
) AS cannotNoSource, |
|
|
|
SUM( |
|
|
|
sl.inventoryLotLineId IS NOT NULL |
|
|
|
@@ -571,7 +570,6 @@ open class StockLedgerFixQueryService( |
|
|
|
sl.inventoryLotLineId IS NULL |
|
|
|
AND COALESCE(sol.inventoryLotLineId, sil.inventoryLotLineId) IS NULL |
|
|
|
AND (sil.inventoryLotId IS NULL OR IFNULL(lc.lineCnt, 0) = 0) |
|
|
|
AND (sl.stockInLineId IS NOT NULL OR sl.stockOutLineId IS NOT NULL) |
|
|
|
) AS cannotNoSource, |
|
|
|
SUM( |
|
|
|
sl.inventoryLotLineId IS NOT NULL |
|
|
|
@@ -721,7 +719,7 @@ open class StockLedgerFixQueryService( |
|
|
|
add(canFix("fixable21a", "可修 2.1a:SIL/SOL 已有 lot line", fixable21a)) |
|
|
|
add(canFix("fixable21b", "可修 2.1b:inventoryLotId 僅一條 line", fixable21b)) |
|
|
|
add(canFix("fixableLotQty", "可修:lot 已有但缺 lotQty", lotQtyMissWithLot)) |
|
|
|
add(cannotFix("cannotNoSource", "2.1 軟刪:入出倉列對不到批號列", cannotNoSource)) |
|
|
|
add(cannotFix("cannotNoSource", "2.1 軟刪:對不到批號列(含沒有入出倉列)", cannotNoSource)) |
|
|
|
add(cannotFix("cannotMultiLine", "2.1 軟刪:同一 lot 有多條 warehouse line", cannotMultiLine)) |
|
|
|
add(cannotFix("earlyTke", "不能修:舊 TKE 開新批(sibling 盤盈)", earlyTkeOver)) |
|
|
|
add(cannotFix("realOver", "不能修:over-issue 非舊 TKE(真超發/帳不一致)", otherOver)) |
|
|
|
|