Skip to content

Commit

Permalink
Merge pull request #257 from gisce/62458_new_method_to_get_reduced_taxes
Browse files Browse the repository at this point in the history
Nuevo método para obtener los IVAS reducidos del F1
  • Loading branch information
eberloso authored Oct 2, 2024
2 parents 11a32df + a6221c0 commit d9a004b
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 d9a004b

Please sign in to comment.