|
|
|
|
@ -35,7 +35,7 @@ class SalesLog < Log
|
|
|
|
|
scope :search_by, ->(param) { filter_by_id(param) } |
|
|
|
|
scope :filter_by_organisation, ->(org, _user = nil) { where(owning_organisation: org) } |
|
|
|
|
|
|
|
|
|
OPTIONAL_FIELDS = %w[purchid monthly_charges_type_value_check old_persons_shared_ownership_value_check].freeze |
|
|
|
|
OPTIONAL_FIELDS = %w[purchid monthly_charges_value_check old_persons_shared_ownership_value_check].freeze |
|
|
|
|
RETIREMENT_AGES = { "M" => 65, "F" => 60, "X" => 65 }.freeze |
|
|
|
|
|
|
|
|
|
def startdate |
|
|
|
|
|