pb-invoice-check
Check invoices and receipts line by line against your offers and list what matches, what differs and what has no offer. Nothing is paid or sent. Use for "check my invoices", "match invoices to offers"
SKILL.mdskills/playbooks/pb-invoice-check/SKILL.md
GitHubInvoice check
What you get: invoices and receipts sorted and checked line by line against the matching offers.
Inputs
- An invoices folder with PDFs
- An offers folder — the
offer.mdfiles from pb-offer - A save folder — asked once; default
./pb-invoice-check-<date>/
Steps
- Ask once — save folder, invoices folder, offers folder →
run-log.md; list the PDFs.pdftotextis not installed, so you read each PDF with the harness PDF read; a PDF it cannot read becomes a row with statusunreadand the run continues — you may paste its text later - Per readable PDF →
invoices.csv, columns file, vendor, date, number, net, VAT, total, status — a field that is not on the invoice is?; every PDF in the folder has exactly one row - Match each invoice to an offer by vendor, client and items → matched offer named in
invoices.csv; no offer found → statusno offer - Write
check.md: per invoice match / mismatch (which line, how much it differs) / no offer / unread — every total recomputed from its lines; the recomputed value and the printed value are both shown - Show
invoices.csvandcheck.mdin full and apply your edits until you approve — approval logged
Nothing is paid or sent, so there is no GO step. The run only reads the two folders and writes into the save folder.
Run log: run-log.md in the save folder. One line per step as it completes (N. done|skipped|failed — file — check result). If a check fails, stop, write the failure into the log and tell the user.