P/O Requisitions and Purchase Order Approval

Overview

A company wants only certain users to approve Purchase Requisitions and Purchase Orders entered in Sage 300 P/O Module. They configure workflow using Orchid Extender to control who can approve Purchase Requisitions and Purchase Orders.

This P/O Approval workflow module is designed to be started automatically when Purchase Requisitions and Purchase Orders are posted in Sage 300. The process is similar for P/O Requisitions and P/O Purchase Orders.

When a user posts a Requisition or a Purchase Order, the workflow sets the Requisition and Purchase Order on hold until the request is approved.

This ensures the Requisition cannot be converted to a Purchase Order and the Purchase Order cannot be printed or receipted.

When the Requisition is approved, the workflow converts it to a Purchase Order automatically. You can configure the workflow template to auto-approve or if required, a new approval process can start for the Purchase Order .

When the Requisition or Purchase order is rejected, the status is remains On Hold. Users can update the requisition, and try to take it off-hold to submitted it for approval again.

Sample files

You can import the P/O Approval Workflow sample module. It includes a workflow template for P/O Requisitions and one for P/O Purchase Orders and required message templates.

The P/O Requisition workflow template is attached to the P/O Requisition ONHOLD field. The P/O Purchase Order template is attached to the P/O Purchase Order ONHOLD field.

Download the PO Approval Module

Flowchart

The flowchart is a high level representation of approval process for the Purchase Requisition to Purchase Order. It doesn't include all the options for all the steps.

Note: The module is supplied on an as is basis for training and demonstration purposes only and is not supported by Orchid Systems. If this code is deployed in a live production environment it is the responsibility of the End User to ensure that it is operating as required.

EXTENDER SETUP KEY STEPS

To start using the P/O Approval module, you need to follow the steps below:

Step 1. Configure SMTP Email settings in Extender Options

This is required for the workflow to send emails to users, that an approval is required and when a P/O is approved or rejected.

Refer to Extender Email Tab

Step 2. Configure Workflow Users

All Sage 300 users who need to approve P/O Records on the workflow console need to be set as Workflow Users. Extender License and Workflow Users

Check Sage 300 users email addresses

Step 3. Create Workflow User Group

Create a workflow user group called PURCHASESMGR. You can add the required Sage 300 users to that group. Refer to Workflow User Groups for details.

If you don't create a workflow user group, you can select a Sage 300 user as the approver. See Step 6 below.

Step 4. Add Workflow colours

The P/O approval uses 2 colours: wfError* if there are any errors, and PURCHASES for regular workflow records on the Console.

You can choose the colour you want for the console, as long as you create Workflow Colours with the same names. (Workflow Colours).

Step 5. Import the PO Approval.vi file

It will create 2 workflow templates, message templates and link the workflow to the PO Requisition and PO Purchase Order Header view.

Step 6. Configure the PO approval module - Print settings

In the PO Approval Print configuration table, you can configure the path where the workflow saves the PO and PO Requisition PDF files, typically in a in a folder per vendor.

You also select the message template used to email vendors based on the AP Vendor delivery method.

The PO Approvals module prints the PO Requisition and the PO Purchase Order as a PDF Report, saved on the server. Optionally, the workflow can email the vendor based on the AP Vendor delivery method.

To configure the Print options, go to Extender Setup, select Custom table Editor, POAPPROVALS Configuration, and Load

Create a new record, set Record ID = 1.

Graphical user interface, text, application, email

Description automatically generated

Step 7. Configure the PO approval module - User delegated amount and manager

In Extender Setup > Custom Table Editor, select the POAPPROVALS.VIUSDEPT table.

Each user has a delegation of authority: Transactions below this amount do not require approval. If you want all P/O and all Requisitions to be approved, set the value to 0.

For all users creating P/O, select their manager.

Select Custom Table Editor in Extender Setup.

  1. Select User Dept Delegated Amt

  2. Load

  3. Create a new record for all users who will be creating PO Requisitions and PO. Select the delegated amount and the Manager User ID. Below the delegated amount, the PO goes straight to the Controller for approval, above the delegated amount, the manager needs to approve first.

  4. Save

Graphical user interface

Description automatically generated

Step 8. Configure approving user

This setting is used for Purchase Requisitions and for Purchase Orders that are not linked to requisitions.

This is configured in View Events, Scripts and workflow

PO requisition– Parameter 1 = Sage 300 user or workflow user group who approves after the manager.

Graphical user interface, text, application, email

Description automatically generated

Graphical user interface, application, website

Description automatically generated

Step 9. Optionally, configure module to use Remote Action in workflow template

If you want to start using Remote Action Service and have purchased a Remote Action Subscription, you can set the value WFUSEREMOTE = Y in the required Workflow Template.

Workflow Template

PO Requisition

PO Purchase Order

Default Value Use Remote Action

N

N

To use Remote Action in Requisition, but not in Purchase Order

Y

N

To use Remote Action in Purchase Order, not in requisition N Y
To use Remote Action in both Y Y

 

Step 10. Auto approve PO from requisitions –

This is configured in the POAPPROVALS.PO Purchase Order workflow template. It applies only to PO Purchase Order Approval

You can set the value to N if you want a new approval process for Purchase Orders created from requisitions.

A screenshot of a computer

Description automatically generated

Workflow template - Step by step guide

It is recommended to add the main steps as defined on the process flowchart first, and then configure the detailed actions for each step.

This tutorial highlights details about some important workflow actions. It is not a detailed training of each workflow action used in this template. For more details on workflow templates and actions, refer to For details, refer to Workflow Templates - Screen Guide.

testing Extender workflow setup

The workflow starts when the PO Requisition or a Purchase Order is created. (by a user on a Sage 300 screen or by an import or a custom process using the Sage 300 Views).

Start the workflow

Log on to Sage 300 and create a new P/O Requisition. .

The workflow is started and the P/O Record is reset to "On Hold".

Note:

Users who create requisitions need security rights to “Requisitions Manual Approval” in Sage 300 Security Group if the “Require Approval” is selected in P/O Options. If not, the PDF generated by the workflow doesn't include any details.

Click to expand Security Group Screenshot

Approve or Reject the Purchase Order or Purchase Requisition

  1. Logon to Sage 300 as a user who can approve

    1. User needs to be set as a workflow user (in Extender License screen)

    2. User needs to have rights to Create Purchase Orders.

  2. Go to Extender Workflow > Console, notice the workflow instance record.

  3. Click on Values Tab to see the details.

  4. Use history to view the steps that the workflow has been following.

  5. Click Approve on the Workflow Console -

    1. This will approve the PO Requisition and create a PO

    2. Send an email to the user who requested the approval.

  6. View the Extender Inquiries > Workflow Details Log

    1. Review the history of the Requisition and the Purchase Order.

    2. Drilldown to the Purchase Order to check that the PO is ready.

  7. Create another PO or Requisition and repeat steps. Choose Reject on the console.

    1. This completes the workflow.

    2. Amend the PO or the Requisition and de-select On Hold This restarts a workflow.

    3. Approve the record on the console.

    4. Review the Workflow Logs in Extender Inquiries

Software Required

Requirement!

This functionality requires Extender Developer.

To use the Workflow console, configure the user as a "Workflow User". Refer to Understanding Workflow Users

To use the Tray Icon on the Sage 300 screens, you need to install Information Manager, configure the tray icons and configure the user as a "Workflow User".