Browse Source

Remove redundant check

pull/1231/head
Jack S 4 years ago
parent
commit
fa19988def
  1. 2
      app/models/validations/sales/sale_information_validations.rb

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

@ -22,7 +22,7 @@ module Validations::Sales::SaleInformationValidations
return if (record.saledate.to_date - record.exdate.to_date).to_i / 365 < 1
record.errors.add(:exdate, I18n.t("validations.sale_information.exdate.must_be_less_than_1_year_from_saledate")) if record.exdate < record.saledate
record.errors.add(:exdate, I18n.t("validations.sale_information.exdate.must_be_less_than_1_year_from_saledate"))
end
def validate_previous_property_unit_type(record)

Loading…
Cancel
Save