Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

[10.0] l10n_it_comunicazione_liquidazione_iva_bridge: correctly compute VP3 #77

Open
wants to merge 1 commit into
base: 10.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
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ def compute_from_liquidazioni(self):

# Operazioni passive
credit_taxes = self.env['account.tax']
for credit in liq.debit_vat_account_line_ids:
for credit in liq.credit_vat_account_line_ids:
credit_taxes |= credit.tax_id
for credit_tax in credit_taxes:
tax = credit_taxes.with_context({
'from_date': period.date_start,
'to_date': period.date_end,
}).browse(credit_tax.id)
quadro.imponibile_operazioni_passive += (
quadro.imponibile_operazioni_passive -= (
tax.base_balance)

# Iva esigibile
Expand Down