Limit debit and credit kind to line with debit and credit in aged balance
Closes #12193
This commit is contained in:
1 parent
61f2f749f4
commit
83b8037eca
1 file changed
+6
-2
@@ -2915,8 +2915,12 @@ class AgedBalance(ModelSQL, ModelView):
|
||||
with Transaction().set_context(date=None):
|
||||
line_query, _ = MoveLine.query_get(line)
|
||||
kind = cls.get_kind(type_)
|
||||
debit_kind = cls.get_kind(debit_type)
|
||||
credit_kind = cls.get_kind(credit_type)
|
||||
debit_kind = (
|
||||
cls.get_kind(debit_type)
|
||||
& (line.debit != 0))
|
||||
credit_kind = (
|
||||
cls.get_kind(credit_type)
|
||||
& (line.credit != 0))
|
||||
columns = [
|
||||
line.party.as_('id'),
|
||||
Literal(0).as_('create_uid'),
|
||||
|
||||
Reference in new issue
Block a user