Browse Source

update

master
cyril.tsui 1 month ago
parent
commit
d6b3efa2be
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/java/com/ffii/fpsms/modules/master/web/ProductionScheduleController.kt

+ 1
- 1
src/main/java/com/ffii/fpsms/modules/master/web/ProductionScheduleController.kt View File

@@ -86,7 +86,7 @@ class ProductionScheduleController(
val latestRoughScheduleAt = productionScheduleService.getLatestScheduleAt("rough")

// assume schedule period is thursday to wednesday
val assignDate = ((genDate ?: today).dayOfWeek.value + 4) % 7 + 1
val assignDate = ((genDate ?: today).dayOfWeek.value + 3) % 7 + 1

// val assignDate = abs(Duration.between(latestRoughScheduleAt, today).toDays() % 7) + 1
// val finalAssignDate = if (assignDate.toInt() == 0) {


Loading…
Cancel
Save