add 2 dolibarr-* skills: thirdparty-completeness, tva-deductible #4
Reference in New Issue
Block a user
Delete Branch "claude/dolibarr-thirdparty-tva-deductible"
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
V4 bundle — two sibling skills, both read-only, both depending on
dolibarr. Thedolibarr-*family now counts 8 skills.dolibarr-thirdparty-completeness/Country-aware completeness audit for any thirdparty (client or supplier). Generalizes the V1 KM-hardcoded
audit-km-thirdparty.sh.audit-thirdparty.sh <socid>— single-id audit with country-specific rules:audit-all-thirdparties.sh [--clients-only|--suppliers-only]— loops the whole list, compact table of gaps.Live findings — 5 / 10 thirdparties have mandatory gaps:
dolibarr-tva-deductible/The supplier-side mirror of
dolibarr-tva-reconciliation. Together they give you the two numbers a French CA3 needs (collectée vs déductible → net to remit).deductible-by-month.sh— HT + TVA déductible grouped by(year-month × tva_tx), mapped to CA3 lignes.deductible-line-detail.sh— per-line audit with supplier country classification (FR / EU intra-UE / extra-EU).Live findings:
API gotcha documented
/supplierinvoices/{id}/linesreturns HTTP 403 forai_agent. We work around it cleanly — lines are also embedded inline on/supplierinvoices/{id}, just like the customer-side. Saved as acl_403_supplier_lines.json for future reference.Base-skill updates
dolibarr/SKILL.md: catalogue row for/supplierinvoices(with the 403 gotcha) and two new sibling cross-links.dolibarr/README.md: two new permission checkboxes for "Factures fournisseurs → Lire / Voir toutes" — they were already granted in this Dolibarr but the doc now reflects the required state for any rebuild.Test plan
audit-all-thirdparties.sh→ exit 1, 5 gapsaudit-thirdparty.sh 1→ exit 1 (US EIN missing)audit-thirdparty.sh 7→ exit 0 (OVH complete)deductible-by-month.sh→ 4 month-buckets, total 223.22 € TVAdeductible-line-detail.sh→ 14 rows, 3 buckets in summaryV5 candidates
dolibarr-tva-summary— composestva-reconciliation+tva-deductibleinto a single monthly CA3-ready report (net to remit / TVA credit, ligne-by-ligne).arcodange-k8s,arcodange-backups,arcodange-bank-reco— operational siblings outside the Dolibarr-API perimeter.