Skip to content

Commit 58c0f69

Browse files
authored
Merge pull request #179 from gisce/remove_fecha_operacion
Deshacer fecha operacion en facturas anuladoras A, B
2 parents dcc227a + 3bda0a7 commit 58c0f69

File tree

2 files changed

+22
-16
lines changed

2 files changed

+22
-16
lines changed

sii/resource.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ 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+
pass
348+
#rectificativa_fields['FechaOperacion'] = get_fecha_operacion_rec(invoice)
348349

349350
if opcion == 1:
350351
factura_rectificada = invoice.rectifying_id
@@ -434,9 +435,10 @@ def get_factura_emitida(invoice, rect_sust_opc1=False, rect_sust_opc2=False):
434435
'DetalleInmueble': detalle_inmueble
435436
}
436437
if invoice.rectificative_type in ('A', 'B'):
437-
factura_expedida.update(
438-
{'FechaOperacion': get_fecha_operacion_rec(invoice)}
439-
)
438+
pass
439+
# factura_expedida.update(
440+
# {'FechaOperacion': get_fecha_operacion_rec(invoice)}
441+
# )
440442
if rectificativa:
441443
opcion = 0
442444
if rect_sust_opc1:

spec/serialization_spec.py

+16-12
Original file line numberDiff line numberDiff line change
@@ -930,19 +930,21 @@ def group_by_tax_rate(iva_values, in_invoice):
930930
)
931931
with context('en los datos de abonadora'):
932932
with it('la FechaOperacion debe ser por factura original'):
933-
expect(
934-
self.fact_refund_emit['FacturaExpedida']['FechaOperacion']
935-
).to(equal('31-12-2016'))
933+
pass
934+
# expect(
935+
# self.fact_refund_emit['FacturaExpedida']['FechaOperacion']
936+
# ).to(equal('31-12-2016'))
936937
with context('en los datos de rectificación'):
937938
with it('el TipoRectificativa debe ser por sustitución (S)'):
938939
expect(
939940
self.fact_rect_emit['FacturaExpedida']['TipoRectificativa']
940941
).to(equal('S'))
941942

942943
with it('la FechaOperacion debe ser por factura original'):
943-
expect(
944-
self.fact_rect_emit['FacturaExpedida']['FechaOperacion']
945-
).to(equal('31-12-2016'))
944+
pass
945+
# expect(
946+
# self.fact_rect_emit['FacturaExpedida']['FechaOperacion']
947+
# ).to(equal('31-12-2016'))
946948

947949
with before.all:
948950
self.importe_rectificacion = (
@@ -1005,14 +1007,16 @@ def group_by_tax_rate(iva_values, in_invoice):
10051007
)
10061008
with context('en los datos de abonadora'):
10071009
with it('la FechaOperacion debe ser por factura original'):
1008-
expect(
1009-
self.fact_refund_emit['FacturaExpedida']['FechaOperacion']
1010-
).to(equal('07-12-2023'))
1010+
pass
1011+
# expect(
1012+
# self.fact_refund_emit['FacturaExpedida']['FechaOperacion']
1013+
# ).to(equal('07-12-2023'))
10111014
with context('en los datos de rectificación'):
10121015
with it('la FechaOperacion debe ser por factura original'):
1013-
expect(
1014-
self.fact_rect_emit['FacturaExpedida']['FechaOperacion']
1015-
).to(equal('07-12-2023'))
1016+
pass
1017+
# expect(
1018+
# self.fact_rect_emit['FacturaExpedida']['FechaOperacion']
1019+
# ).to(equal('07-12-2023'))
10161020

10171021
with description('en los datos de una factura rectificativa recibida'):
10181022
with before.all:

0 commit comments

Comments
 (0)