Skip to content

Commit

Permalink
Added origin_date_invoice to returned fields in inv_params
Browse files Browse the repository at this point in the history
  • Loading branch information
mroig committed Jun 30, 2017
1 parent 7b95123 commit 88cd29d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gestionatr/input/messages/F1.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ def get_create_invoice_params(self):
'date_invoice': self.datos_factura.fecha_factura,
'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,
}

Expand Down
1 change: 1 addition & 0 deletions tests/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,7 @@ def testATRInvoice(self):
'date_invoice': '2017-05-01',
'check_total': 100,
'origin': 'F0001',
'origin_date_invoice': '2017-05-01',
'reference': 'B11254455',
}
)
Expand Down

0 comments on commit 88cd29d

Please sign in to comment.