Remove active clause on account to compute party's deposit
The active column has been removed by issue7417
This commit is contained in:
1 parent
dca6f6e2e8
commit
67a29f50e7
1 file changed
+1
-2
@@ -51,8 +51,7 @@ class Party(metaclass=PoolMeta):
|
||||
).select(line.party,
|
||||
# Use credit - debit to positive deposit amount
|
||||
Sum(Coalesce(line.credit, 0) - Coalesce(line.debit, 0)),
|
||||
where=account.active
|
||||
& (account.kind == 'deposit')
|
||||
where=(account.kind == 'deposit')
|
||||
& party_clause
|
||||
& (line.reconciliation == Null)
|
||||
& (account.company == user.company.id)
|
||||
|
||||
Reference in new issue
Block a user