Skip to content

Commit

Permalink
[FIX] account_financial_report:
Browse files Browse the repository at this point in the history
Not showing journal items with amount residual equal to 0
  • Loading branch information
JoanSForgeFlow committed Aug 20, 2020
1 parent e1b6258 commit 8c224dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions account_financial_report/report/aged_partner_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ def _get_move_lines_data(
debit_amount, credit_amount, ml_ids, account_ids,
company_id, 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]
Expand Down
8 changes: 4 additions & 4 deletions account_financial_report/report/open_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ def _get_data(
debit_amount, credit_amount, ml_ids, account_ids,
company_id, 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:
Expand Down

0 comments on commit 8c224dc

Please sign in to comment.