|
|
|
|
@ -47,12 +47,6 @@ module Validations::Sales::SoftValidations
|
|
|
|
|
extrabor != 1 && mortgage + deposit > value - value * discount / 100 |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def hodate_3_years_or_more_exdate? |
|
|
|
|
return unless hodate && exdate |
|
|
|
|
|
|
|
|
|
((exdate.to_date - hodate.to_date).to_i / 365) >= 3 |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def purchase_price_out_of_soft_range? |
|
|
|
|
return unless value && beds && la |
|
|
|
|
|
|
|
|
|
@ -78,6 +72,8 @@ module Validations::Sales::SoftValidations
|
|
|
|
|
|
|
|
|
|
def hodate_3_years_or_more_saledate? |
|
|
|
|
return unless hodate && saledate |
|
|
|
|
|
|
|
|
|
((saledate.to_date - hodate.to_date).to_i / 365) >= 3 |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def purchase_price_min_or_max_text |
|
|
|
|
|