ソースを参照

update floor

master
CANCERYS\kw093 2日前
コミット
1f2f774453
2個のファイルの変更12行の追加6行の削除
  1. +11
    -5
      src/main/java/com/ffii/fpsms/modules/jobOrder/service/JoPickOrderService.kt
  2. +1
    -1
      src/main/java/com/ffii/fpsms/modules/jobOrder/web/model/CreateJobOrderRequest.kt

+ 11
- 5
src/main/java/com/ffii/fpsms/modules/jobOrder/service/JoPickOrderService.kt ファイルの表示

@@ -1918,13 +1918,19 @@ open fun getAllJoPickOrders(isDrink: Boolean?, floor: String?): List<AllJoPickOr
) )
} else null } else null


// Backend filtering by floor: include if there is remaining on that floor OR any no-lot remaining
// Backend filtering by floor:
// - When selecting a specific floor (2F/3F/4F), show ONLY remaining on that floor.
// - When selecting NO_LOT, show ONLY remaining for no-lot items.
if (normalizedFloorFilter != null) { if (normalizedFloorFilter != null) {
val hasRemainingOnFloor = floorPickCounts.any { c ->
c.floor == normalizedFloorFilter && (c.totalCount - c.finishedCount) > 0
if (normalizedFloorFilter == "NO_LOT") {
val hasNoLotRemaining = (noLotPickCount?.let { it.totalCount - it.finishedCount } ?: 0) > 0
if (!hasNoLotRemaining) return@mapNotNull null
} else {
val hasRemainingOnFloor = floorPickCounts.any { c ->
c.floor == normalizedFloorFilter && (c.totalCount - c.finishedCount) > 0
}
if (!hasRemainingOnFloor) return@mapNotNull null
} }
val hasNoLotRemaining = (noLotPickCount?.let { it.totalCount - it.finishedCount } ?: 0) > 0
if (!hasRemainingOnFloor && !hasNoLotRemaining) return@mapNotNull null
} }


val suggestedFailCount = suggestedFailCountByPickOrderId[pickOrder.id] ?: 0 val suggestedFailCount = suggestedFailCountByPickOrderId[pickOrder.id] ?: 0


+ 1
- 1
src/main/java/com/ffii/fpsms/modules/jobOrder/web/model/CreateJobOrderRequest.kt ファイルの表示

@@ -57,7 +57,7 @@ data class AllJoPickOrderResponse(
val finishedPickOLineCount: Int, val finishedPickOLineCount: Int,
val floorPickCounts: List<FloorPickCountDto> = emptyList(), val floorPickCounts: List<FloorPickCountDto> = emptyList(),
// Lines which currently have no lot assigned (e.g. stockOutLine.inventoryLotLineId is null). // Lines which currently have no lot assigned (e.g. stockOutLine.inventoryLotLineId is null).
// For floor filtering, "no lot" should be treated as applicable to all floors.
// "no lot" is treated as a separate bucket in floor filtering (NOT mixed into 2F/3F/4F).
val noLotPickCount: FloorPickCountDto? = null, val noLotPickCount: FloorPickCountDto? = null,
// Count of rejected stock-out lines for this pick order (proxy for "suggested fail" items). // Count of rejected stock-out lines for this pick order (proxy for "suggested fail" items).
val suggestedFailCount: Int = 0 val suggestedFailCount: Int = 0


読み込み中…
キャンセル
保存