Jordi Ballester Alomar
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
0 deletions
-
account_financial_report/report/aged_partner_balance.py
-
account_financial_report/report/open_items.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: |
|
|
|
|
|
@ -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) |
|
|
|
] |
|
|
|
|
|
|
|