Adds sync_salary_components() — full upsert from default_data JSON: creates missing components, updates existing ones (formula, condition, flags, accounts), and deletes those no longer in the JSON. If a component cannot be deleted due to linked records, it is marked disabled instead. Idempotent and safe to re-run. Hooked into after_migrate_combined so every "bench migrate" picks up the latest formulas — single source of truth is the JSON file. Replaced default_data/salary_components.json with the current production export (14 components, formulas use the f(base) + g(LE) pattern for separate ƏH/MK accounting). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| jey_erp | ||
| .gitignore | ||
| README.md | ||
| TASK_CONTEXT.md | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Jey Erp
Azerbaijan localization for JeyERP
License
unlicense