Create and Track Purchase Requisition
1. Form Initialization & Header Details
- Given the user navigates to the Purchase Requisition module,
- When a new form is opened,
- Then the system must auto-generate a unique Requisition No (e.g., PR-000016) and default the Requisition Date to the current date.
- And the Status should default to "Draft".
- And the user must be able to select the "Production" Department, Priority level, and target Warehouse from standardized dropdown menus.
2. Adding Line Items
- Given the user is filling out the form,
- When they click the "+ Add Line" button,
- Then a new row must appear in the Line Items table.
- And the user must be able to select an Item, which automatically populates the Item Desc and Item SKU Unit.
- And the user must be able to input the required Item Qty.
- And the user must be able to remove a line item by clicking the red trash can (Del) icon.
3. Justification & Attachments
- Given the user needs to provide context for the request,
- When filling out the form,
- Then they can enter free-text into the Reason / Justification and Remarks by Raiser fields.
- And they can upload supporting documents using the Attachments file chooser.
4. Submission & Routing
- Given all mandatory fields (marked with an asterisk *) are completed,
- When the user clicks "Save Requisition",
- Then the system must submit the form and route it to the designated Approver.
- And the Status should update from "Draft" to pending approval.
- Alternate Flow: If the user clicks "Save as Draft", the form data is saved without triggering the approval workflow. Clicking "Clear" resets all fields.
5. Right-Hand Side (RHS) Tracking & Visibility
- Given the user has submitted one or more Purchase Requisitions,
- When they view the "Purchase Requisitions List" on the right-hand panel,
- Then they should see a chronological list of their PRs summarizing the PR Number, key items requested, and submission date.
- And the system must display dynamic status badges for each PR, such as:
- Approve: Indicates the PR is currently pending approval from the approver.
- Not Approved: (Based on the 'Approval Remarks' field) Indicates the PR was rejected.
- Quotation(s) received from vendor(s): Indicates the PR was approved and the procurement team is actively sourcing it.
- And the user can click "Preview" to view a read-only version of the PR, or "Edit" to modify a PR (if the status allows for edits).