Browse Source

Merge 4de3a48843 into 6c3d0f8cb6

pull/792/merge
Jordi Ballester Alomar 3 years ago
committed by GitHub
parent
commit
82674c67c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      account_financial_report/report/aged_partner_balance.py
  2. 3
      account_financial_report/report/open_items.py

5
account_financial_report/report/aged_partner_balance.py

@ -111,6 +111,8 @@ class AgedPartnerBalanceReport(models.AbstractModel):
"journal_id",
"account_id",
"partner_id",
"debit",
"credit",
"amount_residual",
"date_maturity",
"ref",
@ -153,6 +155,9 @@ class AgedPartnerBalanceReport(models.AbstractModel):
move_line
for move_line in move_lines
if move_line["date"] <= date_at_object
and not float_is_zero(
move_line["debit"] - move_line["credit"], precision_digits=2
)
and not float_is_zero(move_line["amount_residual"], precision_digits=2)
]
for move_line in move_lines:

3
account_financial_report/report/open_items.py

@ -102,6 +102,9 @@ class OpenItemsReport(models.AbstractModel):
move_line
for move_line in move_lines
if move_line["date"] <= date_at_object
and not float_is_zero(
move_line["debit"] - move_line["credit"], precision_digits=2
)
and not float_is_zero(move_line["amount_residual"], precision_digits=2)
]

Loading…
Cancel
Save