eSales - Approve Order Process

The workflow for approving purchase orders is shown in the following image.

The eSales - Approve Order Process is described in the surrounding text.

The eSales - Approve Order Process is called when a delegated customer administrator or purchasing manager clicks Approve in the My Orders view. The following events happen:

  • The process calls the eSales - Current User Type workflow (see eSales - Current User Type) to determine the user type.

  • If the customer is not a power user, the process ends.

  • If the customer is a power user, the process determines whether the PO status is Pending because no PO number was entered. If the PO status is Pending, the eSales - Display Error Process workflow is called, an error message is generated, and the customer is returned to the Order Approval view, where the customer can enter the PO number.

  • If the PO status is not Pending, the process determines the order status.

    • If the order status is Awaiting Approval, the PO status is set to Approved and the Send Order Accepted Email (eSales) workflow (see Siebel eSales Notification Workflows) is called.

    • If the order status is not Awaiting Approval, the process ends.