Modified views for monthly invoices

This commit is contained in:
Sergei Tsõganov 2022-08-23 09:20:39 +03:00
parent 72022aab8d
commit a21e5c1954
4 changed files with 49 additions and 6 deletions

View file

@ -6,10 +6,9 @@ module Registrar::BookKeeping
included do
scope :with_cash_accounts, (lambda do
joins(:accounts)
.where('accounts.account_type = ? AND test_registrar != ?',
Account::CASH,
true)
joins(:accounts).where('accounts.account_type = ? AND test_registrar != ?',
Account::CASH,
true)
end)
end