Skip to content

Commit

Permalink
Force only on out invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleJB committed Oct 9, 2024
1 parent c092bfe commit e48b9fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sii/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,11 @@ def get_fact_rect_sustitucion_fields(invoice, opcion=False):
:return:
"""
rectificativa_fields = {
'TipoRectificativa': 'S', # Por sustitución
'FechaOperacion': get_fecha_operacion_rec(invoice)
'TipoRectificativa': 'S' # Por sustitución
}

if 'out_' in invoice.type:
rectificativa_fields['FechaOperacion'] = get_fecha_operacion_rec(invoice)

if opcion == 1:
factura_rectificada = invoice.rectifying_id
Expand Down

0 comments on commit e48b9fd

Please sign in to comment.