[FIX] account_financial_report:
Not showing journal items with amount residual equal to 0pull/939/head
parent
f0abfb7cce
commit
eef6653fba
|
@ -251,12 +251,12 @@ class AgedPartnerBalanceReport(models.AbstractModel):
|
|||
partner_ids,
|
||||
only_posted_moves,
|
||||
)
|
||||
move_lines = [
|
||||
move_line
|
||||
for move_line in move_lines
|
||||
if move_line["date"] <= date_at_object
|
||||
and not float_is_zero(move_line["amount_residual"], precision_digits=2)
|
||||
]
|
||||
move_lines = [
|
||||
move_line
|
||||
for move_line in move_lines
|
||||
if move_line["date"] <= date_at_object
|
||||
and not float_is_zero(move_line["amount_residual"], precision_digits=2)
|
||||
]
|
||||
for move_line in move_lines:
|
||||
journals_ids.add(move_line["journal_id"][0])
|
||||
acc_id = move_line["account_id"][0]
|
||||
|
|
|
@ -225,12 +225,12 @@ class OpenItemsReport(models.AbstractModel):
|
|||
partner_ids,
|
||||
target_move,
|
||||
)
|
||||
move_lines = [
|
||||
move_line
|
||||
for move_line in move_lines
|
||||
if move_line["date"] <= date_at_object
|
||||
and not float_is_zero(move_line["amount_residual"], precision_digits=2)
|
||||
]
|
||||
move_lines = [
|
||||
move_line
|
||||
for move_line in move_lines
|
||||
if move_line["date"] <= date_at_object
|
||||
and not float_is_zero(move_line["amount_residual"], precision_digits=2)
|
||||
]
|
||||
|
||||
open_items_move_lines_data = {}
|
||||
for move_line in move_lines:
|
||||
|
|
Loading…
Reference in New Issue