Skip to content

Commit

Permalink
Cria NFS-e Paulistana com a mesma data informada na fatura.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioluna committed Nov 21, 2017
1 parent cd2cb80 commit af40cbf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions br_nfse/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def _prepare_edoc_vals(self, inv):

res['ambiente_nfse'] = 'homologacao' \
if inv.company_id.tipo_ambiente_nfse == '2' else 'producao'

if self.invoice_model == '001':
res['data_emissao'] = self.date_invoice
res['data_fatura'] = self.date_invoice

return res

def _prepare_edoc_item_vals(self, line):
Expand Down

0 comments on commit af40cbf

Please sign in to comment.