Merge pull request #19586 from prssanna/dashboard-fix
fix: Ignore Period Closing Voucher entries in Accounts dashboard
This commit is contained in:
commit
0a23e1aea5
@ -93,7 +93,8 @@ def get_gl_entries(account, to_date):
|
|||||||
fields = ['posting_date', 'debit', 'credit'],
|
fields = ['posting_date', 'debit', 'credit'],
|
||||||
filters = [
|
filters = [
|
||||||
dict(posting_date = ('<', to_date)),
|
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')
|
order_by = 'posting_date asc')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user