feat(admin): «اجرت» screen — edit the making-charge formula, check a sample, approve

The formula shown as a sentence with coloured terms; each term can be
switched off or given a coefficient; promotion as largest or sum; a
constant, floor, cap and rounding. A sample order line is computed by
the server for the formula in force and the draft side by side, changes
highlighted. Saving needs a change, a confirmed sample and a final
confirm; the approved sample is kept and shown as the formula's
reference, with earlier versions below.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
s.esmaeili
2026-10-08 11:26:56 +03:30
co-authored by Claude Opus 5.5
parent 699657e483
commit fbe7b98ada
4 changed files with 535 additions and 0 deletions
@@ -471,6 +471,14 @@ export const adminMenu: NavMenuNode[] = [
i18n: 'اتصال حسابداری',
permissionId:"config.accounting"
},
// MON-08 — the making-charge formula.
{
url: '/config/manage/wage',
name: 'wage Formula',
slug: 'manage-wage',
i18n: 'اجرت',
permissionId:"config.wage"
},
// Moved under "پیکر بندی" per request — same node shape as before
// (own submenu / plain leaf), just relocated in the tree.
{