Server backup 2026-11-07 of uncommitted work in projects/pharma-web-celtic
Snapshot of the working tree on srv1071960 (branch main), taken during server cleanup. .env files, node_modules, builds, logs and media were excluded.
This commit is contained in:
+13
-12
@@ -9,18 +9,18 @@ from enum import StrEnum
|
||||
|
||||
|
||||
class Role(StrEnum):
|
||||
"""Operational roles (MR/AM/GM) plus the technical ADMIN role.
|
||||
"""Operational roles (MR, ABM, AGM; stored as MR/ABM/AGM) plus technical ADMIN.
|
||||
|
||||
ADMIN sits OUTSIDE the business hierarchy. It provisions users and masters but
|
||||
can never approve a report or read report content (report §8, SEC-2).
|
||||
ADMIN sits OUTSIDE the business hierarchy. It provisions users and masters and
|
||||
may monitor reports, but can never approve one (report §8, SEC-2).
|
||||
"""
|
||||
|
||||
ADMIN = "ADMIN"
|
||||
GM = "GM"
|
||||
AM = "AM"
|
||||
AGM = "AGM"
|
||||
ABM = "ABM"
|
||||
MR = "MR"
|
||||
#: Senior Field Executive: does an MR's work (daily reports, forms, doctors, chemists) and
|
||||
#: reports to the same Area Manager, but may cover several headquarters.
|
||||
#: reports to the same Area Business Manager, but may cover several headquarters.
|
||||
SFE = "SFE"
|
||||
|
||||
|
||||
@@ -29,25 +29,25 @@ FIELD_ROLES: frozenset[Role] = frozenset({Role.MR, Role.SFE})
|
||||
|
||||
|
||||
class DCRStatus(StrEnum):
|
||||
"""MR submits, the Area Manager approves or returns it.
|
||||
"""MR submits, the Area Business Manager approves or returns it.
|
||||
|
||||
`RETURNED` captures the correction loop, and `APPROVED` remains terminal and
|
||||
immutable. There is no General Manager step.
|
||||
immutable. There is no Assistant General Manager step.
|
||||
"""
|
||||
|
||||
DRAFT = "DRAFT"
|
||||
PENDING_AM = "PENDING_AM"
|
||||
PENDING_ABM = "PENDING_ABM"
|
||||
RETURNED = "RETURNED"
|
||||
APPROVED = "APPROVED"
|
||||
|
||||
|
||||
class ReportType(StrEnum):
|
||||
"""An MR files two reports a day, each approved by the Area Manager on its own.
|
||||
"""An MR files two reports a day, each approved by the Area Business Manager on its own.
|
||||
|
||||
PLAN — in the morning: which doctors and chemists the MR intends to visit, and when.
|
||||
ACTUAL — at the end of the day: the visits that happened, plus a short note for every
|
||||
planned visit that did not. It can be started only once the plan is approved.
|
||||
SELF — an Area Manager's own end-of-day report of the visits they made. It needs no
|
||||
SELF — an Area Business Manager's own end-of-day report of the visits they made. It needs no
|
||||
plan and no approval: submitting it makes it final.
|
||||
"""
|
||||
|
||||
@@ -84,7 +84,7 @@ class ConversionStatus(StrEnum):
|
||||
|
||||
|
||||
class MasterApproval(StrEnum):
|
||||
"""A doctor or chemist an MR adds waits for their Area Manager before anyone can use it."""
|
||||
"""A doctor or chemist an MR adds waits for their Area Business Manager before anyone can use it."""
|
||||
|
||||
PENDING = "PENDING"
|
||||
APPROVED = "APPROVED"
|
||||
@@ -109,6 +109,7 @@ class EntityType(StrEnum):
|
||||
HEADQUARTERS = "headquarters"
|
||||
DOCTOR = "doctor"
|
||||
CHEMIST = "chemist"
|
||||
STOCKIST = "stockist"
|
||||
DCR = "dcr"
|
||||
PRODUCT = "product"
|
||||
#: A row of a company form (the table is named in the entry's data).
|
||||
|
||||
Reference in New Issue
Block a user