Check PO Amount vs. PO Limit - Workflow Event Handler
Use this event handler to automatically notify certain people when the cost of a purchase order exceeds the limit you specify in this event handler. The notification can be an external email and/or a message sent to the Inbox form for CloudSuite Industrial users.
This is the text of the notification that is sent:
To: receipient From: originator Subject: Purchase Order amount exceeds company policy Body: Purchase Order ponum amount poamount is greater than the company policy of Purchase Orders under polimit. Please review the Purchase Order.
Variable Information
Variable | Description |
---|---|
recipient | For an Inbox message, this is the user name you specify in the Notify Users field on the Workflow Event Handler Activation form. You can specify multiple names separated by semicolons.
For an external email, this is the email address you specify in the Email Users field on the Workflow Event Handler Activation form. You can specify multiple names separated by a semicolons. |
originator | For an Inbox message, this is usually the name of the user who performed the action that generated the message.
For an external email, this is usually the email address associated with the CloudSuite Industrial user who performed the action that generated the message. However, if the user does not have an associated email address in theUsers form, or if the system cannot determine a user associated with the action, a default address or name is used. In some cases, this default is the email address for the SMTP User Name associated with the intranet entered on the Site/Entities form for the site. |
ponum | This is the number of the purchase order. |
poamount | This is the amount specified in the Total Cost field of the Purchase Orders form. |
polimit | This is the amount you specify in the PO Amount field on the Workflow Event Handler Activation form. It is a corporate standard purchase order limit. |
Global Constants
These global constants are created by the event handler, based on the entries you make in the Workflow Event Handler Activation form:
Global Constant | Contains |
---|---|
CheckPurchaseOrderAmountManagerID | Contents of the Notify Users field |
CheckPurchaseOrderAmountManagerEmail | Contents of the EMail Users field. |
CheckPurchaseOrderAmountLimit | Contents of the PO Amount field. |
Associated Event and Table
The event PurchaseOrderAmountUpdate for the po table triggers this notification.