Update auto-invoice.js