P Palmyra ERP Docs

Workflow model

Every business function has a workflow inbox — a central place where users see pending actions and move step-by-step through stages. Workflows are configurable per module.

Concepts

  • Workflow inbox — List of pending items requiring the current user's action
  • Workflow instance — One business operation (e.g. one purchase request, one stock transfer) with status, current stage, history
  • Stages — Configurable steps; approval roles, scan mode, custom fields
  • Advance / Reject — Move to next stage or reject and optionally return to previous

Workflow types by module

ModuleWorkflowStages
ProcurementPurchase requestRequest → Manager → Finance → PO → GRN → Payment
ProcurementGoods receiptGRN → Verification → Posting
InventoryStock transferRequest → Approval → Picking → Transfer → Receipt
InventoryStock adjustmentRequest → Approval → Posting
SalesSales orderOrder → Approval → Reservation → Picking → Delivery → Invoicing
SalesSales returnReturn Request → Approval → Receipt → Credit
ManufacturingProduction orderOrder → Staging → Production → QC → Completion
FinancePaymentRequest → Approval → Execution
HRLeave requestRequest → Manager → HR → Approved
QualityNCRRaised → Investigation → Corrective Action → Verification → Closed

Configuration API

GET  /api/workflow/config
GET  /api/workflow/config/{workflowType}
PUT  /api/workflow/config/{workflowType}
GET  /api/workflow/inbox
GET  /api/workflow/inbox/{module}
POST /api/workflow/instances/{id}/advance
POST /api/workflow/instances/{id}/reject

Delegation & SLA

Users can delegate approvals when unavailable. Per-stage SLA (hours) and escalation targets; optional reminders and auto-approve on timeout.