diff --git a/config/locales/en.yml b/config/locales/en.yml index ef9dfe332d..1aee3bfa2c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2827,9 +2827,6 @@ See the %{link} to find out more about %{sitename}'s features and to start using order_management: reports: - base: - date_end_before_start_error: "must be after start" - parameter_not_allowed_error: "You are not authorized to use one or more selected filters for this report." enterprise_fee_summaries: filters: date_range: "Date Range" @@ -2839,6 +2836,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using none: "None" select_and_search: "Select filters and click on GENERATE REPORT to access your data." enterprise_fee_summary: + date_end_before_start_error: "must be after start" + parameter_not_allowed_error: "You are not authorized to use one or more selected filters for this report." fee_calculated_on_transfer_through_all: "All" fee_calculated_on_transfer_through_entire_orders: "Entire Orders through %{distributor}" tax_category_various: "Various" diff --git a/engines/order_management/app/services/reports/authorizer.rb b/engines/order_management/app/services/reports/authorizer.rb index 3fd3d2fc4f..1f232b0160 100644 --- a/engines/order_management/app/services/reports/authorizer.rb +++ b/engines/order_management/app/services/reports/authorizer.rb @@ -10,7 +10,7 @@ module Reports end def self.parameter_not_allowed_error_message - i18n_scope = "order_management.reports.base" + i18n_scope = "order_management.reports.enterprise_fee_summary" I18n.t("parameter_not_allowed_error", scope: i18n_scope) end diff --git a/engines/order_management/app/services/reports/parameters/base.rb b/engines/order_management/app/services/reports/parameters/base.rb index c25a2e9969..31148fd47c 100644 --- a/engines/order_management/app/services/reports/parameters/base.rb +++ b/engines/order_management/app/services/reports/parameters/base.rb @@ -13,7 +13,7 @@ module Reports end def self.date_end_before_start_error_message - i18n_scope = "order_management.reports.base" + i18n_scope = "order_management.reports.enterprise_fee_summary" I18n.t("date_end_before_start_error", scope: i18n_scope) end