how to automate commercial invoices