copying of the invoice
fixed bug