Skip to content

Commit

Permalink
[FIX] l10n_es_aeat_mod369: takes all periods
Browse files Browse the repository at this point in the history
  • Loading branch information
arantxa-s73 committed Sep 16, 2024
1 parent be1a155 commit e43794e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions l10n_es_aeat_mod369/models/mod369_line_grouped.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ def _compute_totals(self):
("is_refund", "=", True),
("country_code", "=", group.country_code),
],
limit=1,
)
if refund_line:
group_keys["neg_corrections"] = refund_line.tax_correction
group_keys["neg_corrections"] = sum(

Check warning on line 70 in l10n_es_aeat_mod369/models/mod369_line_grouped.py

View check run for this annotation

Codecov / codecov/patch

l10n_es_aeat_mod369/models/mod369_line_grouped.py#L70

Added line #L70 was not covered by tests
refund_line.mapped("tax_correction")
)
group_keys["result_total"] = (
group_keys["amount"]
+ group_keys["pos_corrections"]
Expand Down

0 comments on commit e43794e

Please sign in to comment.