Skip to content

Commit

Permalink
Adicionado o campo date_in_out nas rotinas de exportação em XML e TXT
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonlima committed Oct 9, 2014
1 parent 6b3d2ba commit dac2e9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_br_account_product/sped/nfe/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _serializer(self, cr, uid, ids, nfe_environment, context=None):
nfe.infNFe.ide.serie.valor = inv.document_serie_id.code or ''
nfe.infNFe.ide.nNF.valor = inv.internal_number or ''
nfe.infNFe.ide.dEmi.valor = inv.date_invoice or ''
nfe.infNFe.ide.dSaiEnt.valor = inv.date_invoice or ''
nfe.infNFe.ide.dSaiEnt.valor = inv.date_in_out or ''
nfe.infNFe.ide.cMunFG.valor = ('%s%s') % (company.state_id.ibge_code, company.l10n_br_city_id.ibge_code)
nfe.infNFe.ide.tpImp.valor = 1 # (1 - Retrato; 2 - Paisagem)
nfe.infNFe.ide.tpEmis.valor = 1
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_product/sped/nfe/serializer/txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def nfe_export(cr, uid, ids, nfe_environment='1',
'nNF': inv.internal_number or '',
'dEmi': inv.date_invoice or '',
'dSaiEnt': inv.date_invoice or '',
'hSaiEnt': '',
'hSaiEnt': inv.date_in_out or '',
'tpNF': '',
'cMunFG': ('%s%s') % (company_addr_default.state_id.ibge_code, company_addr_default.l10n_br_city_id.ibge_code),
'TpImp': '1',
Expand Down

0 comments on commit dac2e9c

Please sign in to comment.