Skip to content

Plan statuses and review actions

Plan statuses

StatusStageMeaning
draftReviewPlan created; lines not yet edited
in_reviewReviewAt least one line reviewed
review_completeReviewAll lines reviewed; ready to submit
validatingValidateAllocator running
validated_okPreviewAll approved lines fully allocated
validated_partialPreviewSome lines partially allocated
validated_failedPreviewNo lines allocated
finalizingFinalizeSTR creation in progress
finalizedFinalizeTransfers created
cancelledPlan cancelled (terminal)

Review statuses (per line)

StatusBadge colourSet when
pending_reviewSlateLine not yet actioned
approvedGreenReviewed qty = suggested qty
reducedYellowReviewed qty < suggested
increasedPurpleReviewed qty > suggested
rejectedRedReviewed qty = 0
deferredAmberAuto- or manually deferred (redundant source)

Allocation statuses (post-validation)

StatusMeaning
not_validatedBefore submit
fully_allocatedApproved qty fully covered from source
partially_allocatedSome units short
unfulfilledZero units allocated
skippedLine excluded from allocation

Review reason codes

Required when reduced or increased vs suggested:

CodeUse when
clinical_priorityClinical need overrides algorithm
shelf_spaceDestination cannot hold full suggested qty
expiry_riskAvoid moving near-expiry stock
supplier_constraintSupply chain limitation
otherAny other documented reason (remark recommended)

Counter tiles (Plan Review)

TileCounts lines where review_status =
Approvedapproved
Reducedreduced
Increasedincreased
Rejectedrejected
Deferreddeferred
Pendingpending_review

Key actions

ButtonPermissionEffect
Submit for validationauto_str.plan.submitRuns validate_auto_str_plan
Finalize → create STRsauto_str.plan.finalizeCreates stock_transfers
Re-open reviewauto_str.plan.reopenStatus → in_review
Cancel planauto_str.plan.cancelStatus → cancelled