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

[15.0][FIX] l10n_es_aeat_mod190 #59

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
40 changes: 30 additions & 10 deletions l10n_es_aeat_mod190/models/l10n_es_aeat_mod190_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,9 @@ def _compute_percepciones_dinerarias(self):
lambda x: x.field_number in (11, 15) and x.res_id == item.report_id.id
)
value = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
value += move_line.debit - move_line.credit
item.percepciones_dinerarias = value

Expand All @@ -565,7 +567,9 @@ def _compute_retenciones_dinerarias(self):
lambda x: x.field_number in (12, 16) and x.res_id == item.report_id.id
)
value = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
value += move_line.credit - move_line.debit
item.retenciones_dinerarias = value

Expand All @@ -578,7 +582,9 @@ def _compute_percepciones_en_especie(self):
lambda x: x.field_number == 13 and x.res_id == item.report_id.id
)
pde = rde = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
pde += move_line.debit - move_line.credit
rde += move_line.credit - move_line.debit
item.percepciones_en_especie = pde - rde
Expand All @@ -592,7 +598,9 @@ def _compute_ingresos_a_cuenta_efectuados(self):
lambda x: x.field_number == 13 and x.res_id == item.report_id.id
)
value = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
value += move_line.debit - move_line.credit
item.ingresos_a_cuenta_efectuados = value

Expand All @@ -605,7 +613,9 @@ def _compute_ingresos_a_cuenta_repercutidos(self):
lambda x: x.field_number == 13 and x.res_id == item.report_id.id
)
value = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
value += move_line.credit - move_line.debit
item.ingresos_a_cuenta_repercutidos = value

Expand All @@ -618,7 +628,9 @@ def _compute_percepciones_dinerarias_incap(self):
lambda x: x.field_number in (11, 15) and x.res_id == item.report_id.id
)
value = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
value += move_line.debit - move_line.credit
item.percepciones_dinerarias_incap = value

Expand All @@ -630,7 +642,9 @@ def _compute_retenciones_dinerarias_incap(self):
lambda x: x.field_number in (12, 16) and x.res_id == item.report_id.id
)
value = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
value += move_line.credit - move_line.debit
item.retenciones_dinerarias_incap = value

Expand All @@ -642,7 +656,9 @@ def _compute_percepciones_en_especie_incap(self):
lambda x: x.field_number == 13 and x.res_id == item.report_id.id
)
pde = rde = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
pde += move_line.debit - move_line.credit
rde += move_line.credit - move_line.debit
item.percepciones_en_especie_incap = pde - rde
Expand All @@ -655,7 +671,9 @@ def _compute_ingresos_a_cuenta_efectuados_incap(self):
lambda x: x.field_number == 13 and x.res_id == item.report_id.id
)
value = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
value += move_line.debit - move_line.credit
item.ingresos_a_cuenta_efectuados_incap = value

Expand All @@ -667,7 +685,9 @@ def _compute_ingresos_a_cuenta_repercutidos_incap(self):
lambda x: x.field_number == 13 and x.res_id == item.report_id.id
)
value = 0.0
for move_line in tax_lines.move_line_ids:
for move_line in tax_lines.move_line_ids.filtered(
lambda mvl: mvl.partner_id == item.partner_id
):
value += move_line.credit - move_line.debit
item.ingresos_a_cuenta_repercutidos_incap = value

Expand Down
1 change: 0 additions & 1 deletion l10n_es_aeat_mod347_igic/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ Contributors
~~~~~~~~~~~~

* Nicolás Ramos <[email protected]>
* Almudena de La Puente <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
1 change: 0 additions & 1 deletion l10n_es_igic/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ Contributors
* Rodrigo Colombo <[email protected]> <[email protected]>
* Hector Ravelo <[email protected]>
* Omar Castiñeira Saavedra <[email protected]>
* Almudena de La Puente <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
1 change: 0 additions & 1 deletion l10n_es_vat_book_igic/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ Contributors
~~~~~~~~~~~~

* Nicolás Ramos <[email protected]>
* Almudena de La Puente <[email protected]>

Maintainers
~~~~~~~~~~~
Expand Down
Loading