Skip to content

Commit 9cb91ae

Browse files
committed
Add fecha operacion date invocie
1 parent dcc227a commit 9cb91ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sii/resource.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def get_fact_rect_sustitucion_fields(invoice, opcion=False):
344344
}
345345

346346
if 'out_' in invoice.type:
347-
rectificativa_fields['FechaOperacion'] = get_fecha_operacion_rec(invoice)
347+
rectificativa_fields['FechaOperacion'] = invoice.date_invoice
348348

349349
if opcion == 1:
350350
factura_rectificada = invoice.rectifying_id
@@ -435,7 +435,7 @@ def get_factura_emitida(invoice, rect_sust_opc1=False, rect_sust_opc2=False):
435435
}
436436
if invoice.rectificative_type in ('A', 'B'):
437437
factura_expedida.update(
438-
{'FechaOperacion': get_fecha_operacion_rec(invoice)}
438+
{'FechaOperacion': invoice.date_invoice}
439439
)
440440
if rectificativa:
441441
opcion = 0

0 commit comments

Comments
 (0)