Fixed closeout-due date for multi-year after year close-out done

This commit is contained in:
2026-06-05 11:42:46 +01:00
parent 7a92bdd6da
commit 3ebeea6cc7

View File

@@ -357,7 +357,9 @@ MNR.DB.Applications <- R6::R6Class(
# Work out what the closeout closeout year should be # Work out what the closeout closeout year should be
dplyr::mutate( dplyr::mutate(
closeout_year = as.Date(paste( closeout_year = as.Date(paste(
lubridate::year(pmax(start_date, closed_at, na.rm = TRUE)), lubridate::year(
pmax(start_date, last_closeout_at, closed_at, na.rm = TRUE)
),
12L, 12L,
31L, 31L,
sep = "-" sep = "-"