print invoice function