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] Correção de PIS e COFINS na NF de serviços #928

Open
wants to merge 1 commit into
base: 12.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
10 changes: 6 additions & 4 deletions br_nfe/models/invoice_eletronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,10 @@ def _prepare_eletronic_invoice_values(self):
'vII': "%.02f" % self.valor_ii,
'vIPI': "%.02f" % self.valor_ipi,
'vIPIDevol': '0.00',
'vPIS': "%.02f" % self.valor_pis,
'vCOFINS': "%.02f" % self.valor_cofins,
'vPIS': "%.02f" % self.valor_pis
if not self.valor_servicos > 0.0 else '0.00',
'vCOFINS': "%.02f" % self.valor_cofins
if not self.valor_servicos > 0.0 else '0.00',,
'vOutro': "%.02f" % self.valor_despesas,
'vNF': "%.02f" % self.valor_final,
'vFCPUFDest': "%.02f" % self.valor_icms_fcp_uf_dest,
Expand All @@ -639,9 +641,9 @@ def _prepare_eletronic_invoice_values(self):
'vBC': "%.02f" % self.valor_bc_issqn
if self.valor_bc_issqn else "",
'vISS': "%.02f" % self.valor_issqn if self.valor_issqn else "",
'vPIS': "%.02f" % self.valor_pis_servicos
'vPIS': "%.02f" % self.valor_pis
if self.valor_pis_servicos else "",
'vCOFINS': "%.02f" % self.valor_cofins_servicos
'vCOFINS': "%.02f" % self.valor_cofins
if self.valor_cofins_servicos else "",
'dCompet': dt_emissao[:10],
'vDeducao': "",
Expand Down