Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] l10n_es_aeat_mod369: takes all periods #3722

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
("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
Loading