Do not apply MoveLine filter to compute Party payable/receivable
The MoveLine.query_get is only for fiscal year purpose but payable and receivable are deferrable. This should have been removed with changeset c7da745a25fc when the deferrable concept was introduced. issue5793 review30411003
This commit is contained in:
1 parent
0efe76bdbe
commit
32ff13021d
1 file changed
-3
@@ -90,8 +90,6 @@ class Party:
|
||||
return result
|
||||
company_id = user.company.id
|
||||
|
||||
line_query, _ = MoveLine.query_get(line)
|
||||
|
||||
amount = Sum(Coalesce(line.debit, 0) - Coalesce(line.credit, 0))
|
||||
for name in names:
|
||||
code = name
|
||||
@@ -110,7 +108,6 @@ class Party:
|
||||
& (account.kind == code)
|
||||
& (line.reconciliation == Null)
|
||||
& (account.company == company_id)
|
||||
& line_query
|
||||
& party_where
|
||||
& today_where
|
||||
& (account.kind == code)),
|
||||
|
||||
Reference in new issue
Block a user