From 4d3d041dd883034003f0daede35a2f6f55502081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Juli=C3=A0?= Date: Wed, 23 Oct 2024 17:47:13 +0200 Subject: [PATCH] Remove fecha operacion en facturas anuladoras --- sii/resource.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sii/resource.py b/sii/resource.py index 5c14025..773d2f6 100644 --- a/sii/resource.py +++ b/sii/resource.py @@ -344,7 +344,8 @@ def get_fact_rect_sustitucion_fields(invoice, opcion=False): } if 'out_' in invoice.type: - rectificativa_fields['FechaOperacion'] = get_fecha_operacion_rec(invoice) + pass + #rectificativa_fields['FechaOperacion'] = get_fecha_operacion_rec(invoice) if opcion == 1: factura_rectificada = invoice.rectifying_id @@ -434,9 +435,10 @@ def get_factura_emitida(invoice, rect_sust_opc1=False, rect_sust_opc2=False): 'DetalleInmueble': detalle_inmueble } if invoice.rectificative_type in ('A', 'B'): - factura_expedida.update( - {'FechaOperacion': get_fecha_operacion_rec(invoice)} - ) + pass + # factura_expedida.update( + # {'FechaOperacion': get_fecha_operacion_rec(invoice)} + # ) if rectificativa: opcion = 0 if rect_sust_opc1: