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:
@@ -1,4 +1,4 @@
|
||||
"""Morning day plan → Area Manager approval → end-of-day report against it (rules P1-P5)."""
|
||||
"""Morning day plan → Area Business Manager approval → end-of-day report against it (rules P1-P5)."""
|
||||
|
||||
from datetime import date
|
||||
|
||||
@@ -99,7 +99,7 @@ class TestEndOfDayNeedsAnApprovedPlan:
|
||||
await _plan(client, auth, doctors, [], approve=False)
|
||||
resp = await client.post(f"{API}/dcr", headers=auth["mr1"], json={"report_date": TODAY, "report_type": "ACTUAL"})
|
||||
assert resp.status_code == 422
|
||||
assert "approved by the Area Manager" in resp.json()["error"]["message"]
|
||||
assert "approved by the Area Business Manager" in resp.json()["error"]["message"]
|
||||
|
||||
async def test_once_approved_it_is_linked_to_the_plan(self, client, auth, org):
|
||||
doctors, _ = await _create_masters(client, auth, org, n_doctors=1, n_chemists=1)
|
||||
|
||||
Reference in New Issue
Block a user