Skip to content

Commit

Permalink
Merge PR OCA#3178 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by rvalyi
  • Loading branch information
OCA-git-bot committed Jul 16, 2024
2 parents 402abfd + 61ecf06 commit ef178aa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions l10n_br_account/report/account_invoice_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ class AccountInvoiceReport(models.Model):
string="Valor ICMS ST", digits=dp.get_precision("Account")
)

icms_origin_value = fields.Float(string="Valor Difal Origem", digits=dp.get_precision("Account"))

icms_destination_value = fields.Float(
string="Valor Difal Destino",
digits=dp.get_precision("Account"),
)

icmsfcp_value = fields.Float(string="Valor Difal FCP", digits=dp.get_precision("Account"))

ipi_value = fields.Float(string="Valor IPI", digits=dp.get_precision("Account"))

pis_value = fields.Float(string="Valor PIS", digits=dp.get_precision("Account"))
Expand Down Expand Up @@ -84,6 +93,9 @@ def _select(self):
, sub.cest_id
, sub.fiscal_type
, sub.icms_value
, sub.icms_origin_value
, sub.icms_destination_value
, sub.icmsfcp_value
, sub.icmsst_value
, sub.ipi_value
, sub.pis_value
Expand All @@ -107,6 +119,9 @@ def _sub_select(self):
, fdl.cest_id
, fdl.fiscal_type
, SUM(fdl.icms_value) as icms_value
, SUM(fdl.icms_origin_value) as icms_origin_value
, SUM(fdl.icms_destination_value) as icms_destination_value
, SUM(fdl.icmsfcp_value) as icmsfcp_value
, SUM(fdl.icmsst_value) as icmsst_value
, SUM(fdl.ipi_value) as ipi_value
, SUM(fdl.pis_value) as pis_value
Expand Down

0 comments on commit ef178aa

Please sign in to comment.