Browse Source

feat: add owned sales logs for clarity and use in rake task (#1814)

pull/1817/head
natdeanlewissoftwire 1 year ago committed by GitHub
parent
commit
ea1bd30a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/models/organisation.rb

4
app/models/organisation.rb

@ -75,6 +75,10 @@ class Organisation < ApplicationRecord
LettingsLog.filter_by_owning_organisation(absorbed_organisations + [self])
end
def owned_sales_logs
sales_logs
end
def managed_lettings_logs
LettingsLog.filter_by_managing_organisation(absorbed_organisations + [self])
end

Loading…
Cancel
Save