Browse Source

Slightly improve readability

pull/2677/head
Manny Dinssa 2 years ago
parent
commit
6f9f3fd64a
  1. 2
      app/models/validations/sales/setup_validations.rb
  2. 3
      config/locales/validations/sales/setup/en.yml

2
app/models/validations/sales/setup_validations.rb

@ -20,7 +20,7 @@ module Validations::Sales::SetupValidations
return unless record.saledate && date_valid?("saledate", record) && !FeatureToggle.allow_future_form_use?
if record.saledate > Time.zone.today + 14.days
record.errors.add :saledate, I18n.t("validations.sales.setup.saledate.not_within_next_two_weeks")
record.errors.add :saledate, I18n.t("validations.sales.setup.saledate.not_within.next_two_weeks")
end
end

3
config/locales/validations/sales/setup/en.yml

@ -3,7 +3,8 @@ en:
sales:
setup:
saledate:
not_within_next_two_weeks: "Sale completion date must not be later than 14 days from today’s date."
not_within:
next_two_weeks: "Sale completion date must not be later than 14 days from today’s date."
must_be_within:
current_collection_year:
"Enter a date within the %{current_start_year_short}/%{current_end_year_short} collection year, which is between %{current_start_year_long} and %{current_end_year_long}."

Loading…
Cancel
Save