add dolibarr-payments-state skill for cash receipt tracking #2
Reference in New Issue
Block a user
Delete Branch "claude/dolibarr-payments-state"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
V2 in the
dolibarr-*family. Adds thedolibarr-payments-stateskill — payment-state reconciliation and cash-receipt tracking, the natural follow-up to V1's invoice-mention audit.Three workflows:
km-payment-state.sh— per-invoice TTC vs sum-of-payments reconciliation withOK/PARTIAL/UNPAID/OVERPAIDclassification. More honest than relying on thepayeboolean for deferred-cycle agreements.km-payment-timeline.sh— all KissMetrics payments sorted by date with cumulative balance. Foundation for the cohort review's deferred 9-month-cycle tracking (actual cash receipts vs contractual schedule).payments-by-month.sh— monthly aggregation, KM-scoped by default,--all-clientsflag for accounting-wide basis.Also extends
dolibarr/SKILL.md:GET /invoices/{id}/payments,GET /bankaccounts,GET /payments(documented as 501 so future workers don't hunt for it)./invoices/{id}/paymentsreturns.dateas a stringYYYY-MM-DD HH:MM:SS, not unix epoch like everywhere else.invoices_12_payments.json,bankaccounts_list.json.Live findings (V1 baseline of the data)
BE58 9675 4309 4979printed on FAC002's PDF.V3 candidates (still out of scope here)
dolibarr-tva-reconciliation— monthly TVA basis preparationdolibarr-recurring-templates— inspect theKiss Metrics Invoicerecurring templatearcodange-bank-reco— match Dolibarr payments against actual Qonto/Wise CSV exportsTest plan
./.claude/skills/dolibarr-payments-state/scripts/km-payment-state.shexits 0 with 5 invoices allOK./.claude/skills/dolibarr-payments-state/scripts/km-payment-timeline.shshows 5 payments running to 8 160 €./.claude/skills/dolibarr-payments-state/scripts/payments-by-month.shshows 3 months (Feb/Mar/Apr 2026)./.claude/skills/dolibarr-payments-state/scripts/payments-by-month.sh --all-clientsworksexamples/V2 in the dolibarr-* family. Three workflows: - km-payment-state.sh: per-invoice reconciliation (TTC vs sum of payments) with OK / PARTIAL / UNPAID / OVERPAID classification. More honest than the `paye` boolean for deferred-cycle agreements. - km-payment-timeline.sh: all KM payments sorted by date with cumulative balance — the foundation for cohort-review deferred 9-month-cycle tracking (actual cash receipts vs contractual schedule). - payments-by-month.sh: monthly aggregation, KM-scoped by default or --all-clients for accounting basis. Also updates dolibarr/SKILL.md endpoint catalogue with /invoices/{id}/payments (note the date-as-string vs unix-epoch quirk) and /bankaccounts, plus captures the corresponding examples. V1 baseline of live data: KM is fully reconciled across 5 invoices (1 avoir + 4 regular), 8160 € total cash receipts spread Feb/Mar/Apr 2026, all on WISE EURO (BE). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>