diff --git a/gestionatr/input/messages/F1.py b/gestionatr/input/messages/F1.py index d22db88..a989872 100644 --- a/gestionatr/input/messages/F1.py +++ b/gestionatr/input/messages/F1.py @@ -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 = [] @@ -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: