Fix invoice generation view