Skip to content

Commit

Permalink
[FIX] l10n_es_aeat_sii: nueva norma de calidad informátiva. Control d…
Browse files Browse the repository at this point in the history
…e intracomunitarias
  • Loading branch information
acysos committed Oct 14, 2019
1 parent 9111423 commit e0f68b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions l10n_es_aeat_sii/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,12 @@ def _get_sii_in_taxes(self):
line['CuotaSoportada'] = \
abs(round(line['CuotaSoportada'], 2))
line['BaseImponible'] = round(line['BaseImponible'], 2)
if self.registration_key.code in ['03', '05', '09', '16']:
line['CuotaSoportada'] = abs(round(0, 2))
if line.get('TipoImpositivo', False):
line['TipoImpositivo'] = round(line['TipoImpositivo'], 2)
if self.registration_key.code in ['03', '05', '09', '16']:
line['TipoImpositivo'] = round(0, 2)
taxes_sii['DesgloseIVA']['DetalleIVA'].append(line)
if len(taxes_isp) > 0:
for key, line in taxes_isp.items():
Expand Down

0 comments on commit e0f68b1

Please sign in to comment.