Correct what /posroles tells a console about each role

The supervisor blurb still said "Also signs into the app", which was true when it
was written and is now the opposite of true: a till account has no Nearle Daily
login at all. A console showing that text would be telling a store admin the one
thing about these roles they most need not to believe.

The cashier blurb said "Billing only", which understated it in the other
direction — a cashier now has their own username and password, so a shop can
open without a supervisor standing there.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Suriya
2026-08-07 12:14:10 +05:30
parent 9e9401215d
commit f7895d3ccf

View File

@@ -816,13 +816,16 @@ func (ctl *PosController) WebPosRoles(c *fiber.Ctx) error {
"details": []fiber.Map{
{
"role_id": models.PosRoleSupervisor, "role": "supervisor",
"label": models.PosRoleName(models.PosRoleSupervisor),
"description": "Runs the terminal and creates counter staff. Also signs into the app.",
"label": models.PosRoleName(models.PosRoleSupervisor),
"description": "Runs the terminal: imports, settings, voids, and " +
"creating counter staff. Signs in at a till only — a till " +
"account has no Nearle Daily login.",
},
{
"role_id": models.PosRoleCashier, "role": "cashier",
"label": models.PosRoleName(models.PosRoleCashier),
"description": "Billing only.",
"label": models.PosRoleName(models.PosRoleCashier),
"description": "Billing only. Signs in at a till with their own username " +
"and password, so a shop can open without a supervisor present.",
},
},
})