Skip to content

Commit

Permalink
Fix 'reference' is the origin invoice number too
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarreras committed Sep 7, 2017
1 parent 5192b8e commit 3638991
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gestionatr/input/messages/F1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}


Expand Down
4 changes: 2 additions & 2 deletions tests/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ def testATRInvoice(self):
'check_total': 100,
'origin': 'F0001',
'origin_date_invoice': '2017-05-01',
'reference': 'B11254455',
'reference': 'F0001',
}
)

Expand Down Expand Up @@ -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',
}
)

Expand Down

0 comments on commit 3638991

Please sign in to comment.