Rabbinatix
Sign inGet started
Store

Invoice check

FreeLogic
@rabbinatix/invoice-check by Rabbinatixupdated Oct 4, 2026

The first overdue invoice, whether any are overdue, and whether all are paid.

Sign in to add

Two small yes/no functions answer the questions: Find First gives the first invoice with daysLate above 0 (null when none), Any Match whether there is one, and All Match whether every invoice is paid. They stop at the first answer.

An empty list has nothing overdue and counts as all paid.

Shows: Find First, Any Match, All Match.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Invoice check. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.

Inputs
invoices: List of records
Outputs
firstOverdue: Record (may be empty)
anyOverdue: Yes / No
allPaid: Yes / No
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 5
Invoice check
invoices
Find First, Collection. 1 input, 1 output. step 2 of 5
Find First Is it overdue?
array
item
Any Match, Collection. 1 input, 1 output. step 3 of 5
Any Match Is it overdue?
array
result
All Match, Collection. 1 input, 1 output. step 4 of 5
All Match Is it paid?
array
result
Return, Input / output. 4 inputs, 0 outputs. step 5 of 5
Return
firstOverdue
anyOverdue
allPaid

Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.

100%
Examplesrun live against the logic · 3/3 pass
PassedExampleInputOutput
One overdue{"invoices":[{"id":"A","paid":true,"daysLate":0},{"id":"B","paid":false,"daysLate":12},{"id":"C","paid":false,"daysLate":3}]}{"firstOverdue":{"id":"B","paid":false,"daysLate":12},"anyOverdue":true,"allPaid":false}
All paid{"invoices":[{"id":"A","paid":true,"daysLate":0}]}{"firstOverdue":null,"anyOverdue":false,"allPaid":true}
No invoices{"invoices":[]}{"firstOverdue":null,"anyOverdue":false,"allPaid":true}
Try it
Versions
In this package
Invoice check (entry)
Is it overdue?
Is it paid?