Skip to content

Commit

Permalink
new method to get reduced taxes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcCalvoC committed Oct 1, 2024
1 parent 11a32df commit a6221c0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gestionatr/input/messages/F1.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,14 @@ def ivas(self):
data.append(IVA(d))
return data

@property
def ivas_reducidos(self):
data = []
if hasattr(self.factura, 'IVAReducido'):
for d in self.factura.IVAReducido:
data.append(IVA(d))
return data

@property
def conceptos_repercutibles(self):
data = []
Expand Down Expand Up @@ -582,6 +590,12 @@ def get_linies_factura_by_type(self):

return res

def con_iva_reducido_exempto(self):
for iva in self.ivas_reducidos:
if iva.porcentaje != 0:
return False
return True

def sin_base_imponible(self):
for iva in self.ivas:
if iva.base != 0:
Expand Down

0 comments on commit a6221c0

Please sign in to comment.