|
@@ -86,7 +86,7 @@ class ProductionScheduleController( |
|
|
val latestRoughScheduleAt = productionScheduleService.getLatestScheduleAt("rough") |
|
|
val latestRoughScheduleAt = productionScheduleService.getLatestScheduleAt("rough") |
|
|
|
|
|
|
|
|
// assume schedule period is thursday to wednesday |
|
|
// 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 assignDate = abs(Duration.between(latestRoughScheduleAt, today).toDays() % 7) + 1 |
|
|
// val finalAssignDate = if (assignDate.toInt() == 0) { |
|
|
// val finalAssignDate = if (assignDate.toInt() == 0) { |
|
|