Update stored last invoice number for billing team
Update stored last invoice number for billing team
Invoices can arrive out of order or from excluded customers, creating numbering gaps. Keep a single last-invoice number so billing assigns the correct next number before close.