Merge pull request #19586 from prssanna/dashboard-fix

fix: Ignore Period Closing Voucher entries in Accounts dashboard
This commit is contained in:
Deepesh Garg 2019-11-15 08:21:02 +05:30 committed by GitHub
commit 0a23e1aea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,8 @@ def get_gl_entries(account, to_date):
fields = ['posting_date', 'debit', 'credit'],
filters = [
dict(posting_date = ('<', to_date)),
dict(account = ('in', child_accounts))
dict(account = ('in', child_accounts)),
dict(voucher_type = ('!=', 'Period Closing Voucher'))
],
order_by = 'posting_date asc')