fix(config): real company identity — capital without the € sign, and no placeholders #77

Merged
arcodange merged 1 commits from arcodange/company-identity into main 2026-07-26 00:27:41 +02:00
Owner

static/config/company.json feeds setupCompany() in both main.ts and provisionSandbox.ts, and main.ts defaults to the production address. The file held placeholder identity values — running it against prod would have replaced Arcodange's legal identity with them.

  • capital 1000€1000. Dolibarr expects a number; the € made the value unusable by the PDF template, which is why « Capital de 1 000 € » was missing from every invoice since January (mandatory mention, C. com. R.123-238). This file is the root cause — patching the database alone would have been undone by the next provisioning run.
  • Placeholders → real values, read off the production ERP where they render on every issued invoice: siren 123456789999657455, siret 1234567890001199965745500013, numTva FR00000000000FR00999657455, rcs_rm 000 000 000 R.C.S. EvryR.C.S. Évry, naf_ape 62.02A6201Z.
  • formeJuridique SAS → SARL, and the same fix in fleet/profile/fiscal.yaml (legal_form), which inherited "SAS" from the PRD README. Three operational sources say SARL: the production ERP, the signed contrat cadre signature block (« Pour Arcodange (SARL) »), and the 2026-05-28 cohort review. The PRD is wrong. Flagged in-file for confirmation against the Kbis.
  • moisDebutExercice Juillet → Janvier (fiscal year closes 12-31 per fiscal.yaml).

fiscal.yaml still validates: 8 rules, 15 calendar entries, 7 ADC records, 0 errors.

⚠️ The trunk has unpushed staged edits to this same file (siteWeb + email) on different lines — they will merge cleanly, but the PRD README's "SAS" claim should be corrected separately.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VRShc4QhLLU73FLHx9vskh

`static/config/company.json` feeds `setupCompany()` in **both** `main.ts` and `provisionSandbox.ts`, and `main.ts` defaults to the **production** address. The file held placeholder identity values — running it against prod would have replaced Arcodange's legal identity with them. - **`capital` `1000€` → `1000`.** Dolibarr expects a number; the € made the value unusable by the PDF template, which is why « Capital de 1 000 € » was missing from every invoice since January (mandatory mention, C. com. R.123-238). **This file is the root cause** — patching the database alone would have been undone by the next provisioning run. - **Placeholders → real values**, read off the production ERP where they render on every issued invoice: `siren` `123456789` → `999657455`, `siret` `12345678900011` → `99965745500013`, `numTva` `FR00000000000` → `FR00999657455`, `rcs_rm` `000 000 000 R.C.S. Evry` → `R.C.S. Évry`, `naf_ape` `62.02A` → `6201Z`. - **`formeJuridique` SAS → SARL**, and the same fix in `fleet/profile/fiscal.yaml` (`legal_form`), which inherited "SAS" from the PRD README. Three operational sources say **SARL**: the production ERP, the signed contrat cadre signature block (« Pour Arcodange (SARL) »), and the 2026-05-28 cohort review. The PRD is wrong. Flagged in-file for confirmation against the Kbis. - `moisDebutExercice` Juillet → Janvier (fiscal year closes 12-31 per `fiscal.yaml`). `fiscal.yaml` still validates: 8 rules, 15 calendar entries, 7 ADC records, 0 errors. ⚠️ The trunk has unpushed staged edits to this same file (siteWeb + email) on different lines — they will merge cleanly, but the PRD README's "SAS" claim should be corrected separately. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VRShc4QhLLU73FLHx9vskh
arcodange added 1 commit 2026-07-26 00:27:35 +02:00
static/config/company.json feeds setupCompany() in both main.ts and
provisionSandbox.ts, and main.ts defaults to the PRODUCTION address. The file
held placeholder identity values: running it against prod would have replaced
Arcodange's legal identity with them.

- capital "1000€" -> "1000". Dolibarr expects a number; the € made the value
  unusable by the PDF template, which is why "Capital de 1 000 €" was missing
  from every invoice since January (mandatory mention, C. com. R.123-238). This
  file is the root cause — patching the database alone would have been undone
  by the next provisioning run.
- siren 123456789 -> 999657455, siret 12345678900011 -> 99965745500013,
  numTva FR00000000000 -> FR00999657455, rcs_rm "000 000 000 R.C.S. Evry"
  -> "R.C.S. Évry", naf_ape 62.02A -> 6201Z. All read off the production ERP,
  where they render on every issued invoice.
- formeJuridique SAS -> SARL, and the same correction in fleet/profile/fiscal.yaml
  (legal_form), which inherited "SAS" from the PRD README. Three operational
  sources say SARL: the production ERP, the signed contrat cadre signature block
  ("Pour Arcodange (SARL)"), and the 2026-05-28 cohort review. The PRD is wrong.
  Flagged in-file for confirmation against the Kbis.
- moisDebutExercice Juillet -> Janvier (fiscal year closes 12-31 per fiscal.yaml).

fiscal.yaml still validates: 8 rules, 15 calendar entries, 7 ADC records, 0 errors.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01VRShc4QhLLU73FLHx9vskh
arcodange merged commit b1984aa337 into main 2026-07-26 00:27:41 +02:00
arcodange deleted branch arcodange/company-identity 2026-07-26 00:27:41 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arcodange-org/erp#77