Finsih generate invoice