From received cash to overdue invoices
Check net payments against orders, then review what remains due on the corresponding invoices.
Turn a dated invoice snapshot into outstanding balances and aging buckets. Separate currencies, deduct payments and flag invalid invoices.
3 USD invoices, including a partial payment and a settled balance → 2 open invoices: $65 overdue and $20 current; 1 settled.