optimized auto invoicing