diff --git a/gestionatr/input/messages/F1.py b/gestionatr/input/messages/F1.py index 76d41571..96698bdb 100644 --- a/gestionatr/input/messages/F1.py +++ b/gestionatr/input/messages/F1.py @@ -402,7 +402,7 @@ def get_create_invoice_params(self): 'check_total': abs(self.datos_factura.importe_total_factura), 'origin': self.datos_factura.codigo_fiscal_factura, 'origin_date_invoice': self.datos_factura.fecha_factura, - 'reference': self.datos_factura.identificador_emisora, + 'reference': self.datos_factura.codigo_fiscal_factura, } diff --git a/tests/test_input.py b/tests/test_input.py index 0b3ad901..b16d689b 100644 --- a/tests/test_input.py +++ b/tests/test_input.py @@ -1349,7 +1349,7 @@ def testATRInvoice(self): 'check_total': 100, 'origin': 'F0001', 'origin_date_invoice': '2017-05-01', - 'reference': 'B11254455', + 'reference': 'F0001', } ) @@ -2057,7 +2057,7 @@ def test_spaces_are_deleted(self): 'check_total': 100, 'origin': 'F0001', 'origin_date_invoice': '2017-05-01', - 'reference': 'B11254455', + 'reference': 'F0001', } )