Skip to content

Commit

Permalink
Merge PR OCA#2853 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by eLBati
  • Loading branch information
OCA-git-bot committed May 19, 2023
2 parents 177693d + 5396890 commit 13995d0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions l10n_it_fatturapa_out_rc/wizard/wizard_export_e_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,11 @@ def setDatiRiepilogo(self, invoice, body):
def setDatiPagamento(self, invoice, body):
super(WizardExportFatturapa, self).setDatiPagamento(invoice, body)
for DatiPagamento in body.DatiPagamento:
if invoice.type in ['out_refund', 'in_refund'] \
and invoice.fiscal_document_type_id.code not in ['TD04', 'TD08']\
and DatiPagamento.ImportoPagamento:
DatiPagamento.ImportoPagamento = - DatiPagamento.ImportoPagamento
for dettaglio in DatiPagamento.DettaglioPagamento:
if (
invoice.type in ['out_refund', 'in_refund']
and invoice.fiscal_document_type_id.code not in ['TD04', 'TD08']
and dettaglio.ImportoPagamento
):
dettaglio.ImportoPagamento = - dettaglio.ImportoPagamento
return True

0 comments on commit 13995d0

Please sign in to comment.