Skip to content

Commit

Permalink
ADD TD20 doc type (OCA#725)
Browse files Browse the repository at this point in the history
IMP l10n_it_fiscal_document_type to be sure that doc type is always set
FIX l10n_it_fatturapa_out to use the fiscal doc type
  • Loading branch information
eLBati committed May 21, 2021
1 parent eddc8e4 commit 6f7ea07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_out/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
'name': 'Italian Localization - Fattura elettronica - Emissione',
'version': '12.0.1.0.0',
'version': '12.0.1.0.1',
'development_status': 'Beta',
'category': 'Localization/Italy',
'summary': 'Emissione fatture elettroniche',
Expand Down
4 changes: 1 addition & 3 deletions l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,7 @@ def setDatiGeneraliDocumento(self, invoice, body):
raise UserError(
_('Invoice does not have a number.'))

TipoDocumento = 'TD01'
if invoice.type == 'out_refund':
TipoDocumento = 'TD04'
TipoDocumento = invoice.fiscal_document_type_id.code
ImportoTotaleDocumento = invoice.amount_total
if invoice.split_payment:
ImportoTotaleDocumento += invoice.amount_sp
Expand Down

0 comments on commit 6f7ea07

Please sign in to comment.