|
|
|
@ -34,7 +34,7 @@ module Validations::SetupValidations |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
private |
|
|
|
private |
|
|
|
|
|
|
|
|
|
|
|
def active_collection_start_date |
|
|
|
def active_collection_start_date |
|
|
|
if FormHandler.instance.lettings_in_crossover_period? |
|
|
|
if FormHandler.instance.lettings_in_crossover_period? |
|
|
|
@ -55,7 +55,7 @@ module Validations::SetupValidations |
|
|
|
previous_start_year_long: previous_collection_start_date.strftime("#{previous_collection_start_date.day.ordinalize} %B %Y"), |
|
|
|
previous_start_year_long: previous_collection_start_date.strftime("#{previous_collection_start_date.day.ordinalize} %B %Y"), |
|
|
|
current_end_year_short: current_collection_end_date.strftime("%y"), |
|
|
|
current_end_year_short: current_collection_end_date.strftime("%y"), |
|
|
|
current_end_year_long:, |
|
|
|
current_end_year_long:, |
|
|
|
) |
|
|
|
) |
|
|
|
else |
|
|
|
else |
|
|
|
I18n.t( |
|
|
|
I18n.t( |
|
|
|
"validations.setup.startdate.current_financial_year", |
|
|
|
"validations.setup.startdate.current_financial_year", |
|
|
|
@ -63,7 +63,7 @@ module Validations::SetupValidations |
|
|
|
current_end_year_short: current_collection_end_date.strftime("%y"), |
|
|
|
current_end_year_short: current_collection_end_date.strftime("%y"), |
|
|
|
current_start_year_long: current_collection_start_date.strftime("#{current_collection_start_date.day.ordinalize} %B %Y"), |
|
|
|
current_start_year_long: current_collection_start_date.strftime("#{current_collection_start_date.day.ordinalize} %B %Y"), |
|
|
|
current_end_year_long:, |
|
|
|
current_end_year_long:, |
|
|
|
) |
|
|
|
) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|