Skip to content

Commit

Permalink
[15.0][FIX] Al calcular el modelo 190 se estaba asignando el mismo im…
Browse files Browse the repository at this point in the history
…porte a todos los partners.
  • Loading branch information
almumu committed Oct 21, 2024
1 parent f4f9b9f commit 146996c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
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

0 comments on commit 146996c

Please sign in to comment.