Browse Source

Add numeric error message to numstair question

pull/2984/head
Manny Dinssa 2 months ago
parent
commit
524efeeaef
  1. 9
      app/services/bulk_upload/sales/year2025/row_parser.rb

9
app/services/bulk_upload/sales/year2025/row_parser.rb

@ -393,6 +393,15 @@ class BulkUpload::Sales::Year2025::RowParser
}, },
on: :after_log on: :after_log
validates :field_103,
numericality: {
greater_than_or_equal_to: 2,
less_than_or_equal_to: 10,
message: I18n.t("#{ERROR_BASE_KEY}.numeric.within_range", field: "Number of staircasing transactions", min: "2", max: "10"),
allow_blank: true,
},
on: :before_log
validate :validate_buyer1_economic_status, on: :before_log validate :validate_buyer1_economic_status, on: :before_log
validate :validate_buyer2_economic_status, on: :before_log validate :validate_buyer2_economic_status, on: :before_log
validate :validate_valid_radio_option, on: :before_log validate :validate_valid_radio_option, on: :before_log

Loading…
Cancel
Save