Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuevo método para obtener los IVAS reducidos del F1 #257

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading