Generate a Legal Invoice Automatically