Post entries whose lines add to zero

Check an entry of signed lines adds to zero and answer it to keep, once per entry id, answer its undo as a new entry with every line negated, and list every entry in the lists that does not add to zero

action post takes lines { amount_field, group_field }, entry_id and rows [{ values }] (two or more); lines that do not add to zero are refused and nothing is answered to keep; the same entry_id posts once. reverse takes entry_id and reverse_id and answers the negated lines to keep; the original lines stay. Both answer the rows under keep for the caller to store; give the lists in lists. balance reads every line and answers the entries that do not add to zero and the lines with no amount or no entry (unplaced, never counted as zero). It reads only.

What it asks for

Nothing: your AI starts it with your words.

Use it from your AI

Connect the AI you already use to Trillion once. Then ask in your own words; your AI finds this tool by what it does and runs it.

Say to your AI: “Use Trillion to check an entry of signed lines adds to zero and answer it to keep, once per entry id, answer its undo as a new entry with every line negated, and list every entry in the lists that does not add to zero”