minor fix in Trial Balance Detailed

This commit is contained in:
Camilo Sarmiento 2020-09-17 08:59:33 -05:00
parent 73d8c7b2e6
commit 227e5d9d6f
1 changed files with 2 additions and 0 deletions

View File

@ -629,6 +629,8 @@ class TrialBalanceDetailed(Report):
if data['accounts']:
select1.where = select1.where & (line.account.in_(data['accounts']))
if data['posted']:
select1.where = select1.where & (move.state == 'posted')
cursor.execute(*select1)
result_in = cursor.fetchall()