adding the invoice id in the history