Purchase requisition auto-order
Summarize
Summary of Purchase Requisition Auto-Order
Purchase Requisition Auto-Order automates the creation of purchase orders (POs) from approved purchase requisitions (PRs) without manual buyer intervention. This feature streamlines procurement by automatically generating POs when specific conditions are met, reducing processing time and manual effort.
Show less
How Auto-Order Works
- Once a PR reaches the state where all approval activities are complete, the Requisition State Handler flow evaluates whether auto-order is enabled and if the PR total qualifies based on a configured threshold.
- If conditions are met, the flow calls the CreatePurchaseOrder script, which validates the PR and generates the PO header and lines from the approved PR lines.
- The PO state is set depending on the supplier type:
- Standard suppliers: PO state is set to Pending submission.
- Punchout suppliers: An integration request is sent to the supplier and the PO state is set to Pending supplier confirmation.
- The PO is linked back to the PR, and the PR state is updated accordingly.
- If validation fails during PO creation, any partially created PO records are removed and manual handling is required.
Key Configuration Properties
Two system properties control auto-order behavior:
- snshop.spend.requisition.autoorder: Enables or disables auto-order. Set to yes to activate auto-order; any other value disables it. If not set, it defaults to yes.
- snshop.spend.requisition.autoorder.threshold: Defines the maximum PR total (in reference currency) eligible for auto-order. PRs exceeding this amount require manual PO creation. Set to 0 to allow auto-order for any PR amount. Defaults to 0 if not set.
Note: In multi-currency environments, configure the threshold using the instance's reference currency to avoid unexpected behavior for PRs entered in other currencies.
Requirements for Auto-Order Activation
- Auto-order property must be enabled (yes or unset).
- PR total in reference currency must be at or below the configured threshold, or threshold set to 0.
- PR must have at least one approved line.
- All approved PR lines must include valid cost allocation data, including GL account information.
Auto-order automates the creation of a purchase order (PO) from an approved purchase requisition (PR) without requiring manual buyer intervention. Two system properties control whether the feature is active and the maximum PR value that qualifies for automatic processing.
When a PR reaches the state where all activities are complete, the Requisition State Handler flow evaluates the auto-order configuration. If the conditions are met, the flow creates a PO and links it back to the PR automatically. If the conditions are not met, the PR waits for a buyer to create the PO manually.
How auto-order works
The Requisition State Handler flow performs the following actions during auto-order processing.
- A PR is created and reaches the state where all approval activities are complete.
- The Requisition State Handler flow evaluates whether auto-order is active and whether the PR total is at or below the configured threshold.
- If the auto-order conditions are met, the flow invokes the
CreatePurchaseOrderscript, which validates the PR and builds the PO header and lines from the approved PR lines. - The PO state is set based on the supplier type:
- For standard suppliers, the PO state is set to Pending submission.
- For punchout suppliers, an integration request is sent to the supplier and the PO state is set to Pending supplier confirmation.
- The PO is linked to the PR, and the PR state is updated to reflect the PO state.
If PR validation fails during PO creation, any partially created PO records are removed and the PR must be handled manually.
Auto-order system properties
The system properties that control auto-order behavior are described in the following table.
| Property | Description | Default value |
|---|---|---|
| sn_shop.spend.requisition.autoorder | Controls whether auto-order is active. Set to yes to turn
on automatic PO creation. Any other value, including no, turns
off auto-order and requires a buyer to create the PO manually. If no value is
configured, the system treats it as yes. |
no
|
| sn_shop.spend.requisition.autoorder.threshold | Sets the maximum PR total, in reference currency, that qualifies for
auto-order. PRs with a total above this value require manual PO creation. Set to
0 to apply auto-order to PRs of any amount. If no value is
configured, the system treats it as 0. |
0
|
The threshold is compared against the PR's reference currency amount. In multi-currency instances, configure the threshold value with the instance reference currency in mind to help avoid unexpected results for PRs entered in other currencies.
Auto-order requirements
All of the following conditions must be true for auto-order to create a PO:
- The sn_shop.spend.requisition.autoorder property is set to
yesor has no configured value. - The PR total in reference currency is at or below the configured threshold, or the
threshold is set to
0. - The PR has at least one line in an approved state.
- All approved PR lines have valid cost allocation data, including GL account information.