Skip to content

Commit

Permalink
Add operation date when invoice send is A,B or R
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleJB committed Oct 9, 2024
1 parent 50042a8 commit 92599cd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sii/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ def get_fact_rect_sustitucion_fields(invoice, opcion=False):
:return:
"""
rectificativa_fields = {
'TipoRectificativa': 'S' # Por sustitución
'TipoRectificativa': 'S', # Por sustitución
'FechaOperacion': invoice.rectifying_id.date_invoice
}

if opcion == 1:
Expand Down Expand Up @@ -424,7 +425,10 @@ def get_factura_emitida(invoice, rect_sust_opc1=False, rect_sust_opc2=False):
factura_expedida['DatosInmueble'] = {
'DetalleInmueble': detalle_inmueble
}

if invoice.type in ('A', 'B'):
factura_expedida.update(
{'FechaOperacion': invoice.rectifying_id.date_invoice}
)
if rectificativa:
opcion = 0
if rect_sust_opc1:
Expand Down

0 comments on commit 92599cd

Please sign in to comment.