Notifications

3643 views

Calculation of Delivery Date and Estimated Delivery Date in checkout page 

 

Overview
This article explains how the Delivery Date and Estimated Delivery Date fields in the Service Catalog checkout page are calculated.

 

Check out page versions

There are two versions of the Service Catalog checkout page.

  • If the Use the sc_layout driven cart macros property is disabled, the final checkout screen is:

com.glideapp.servicecatalog_checkout_view

  • If the Use the sc_layout driven cart macros property is enabled, the final checkout screen is: 

com.glideapp.servicecatalog_checkout_view_v2

Note that, by default, the property is set to true.

  

Calculation of Delivery Date and Estimated Delivery Date in checkout page

The Delivery Date and Estimated Delivery Date fields are defined as follows:

Delivery Date: The final date by which the requested item is delivered to the customer. Delivery date is associated to the requested items in the cart.

Estimated Delivery Date: The estimated delivery date for the request is the maximum among the delivery dates of all requested items in the cart. The Estimated Delivery Date is associated to the request.

Each catalog item is associated with an execution plan or workflow. If a catalog item is not associated with an execution plan or workflow, the Default execution plan is associated to the catalog item by default.

The delivery date of the requested item depends on the associated workflow or the execution plan. If the requested item is associated the workflow, then the delivery date is the expected work effort time to complete the workflow. Each workflow can have a predefined time it is completed. This predefined time is the delivery date of the requested item. Configure this predefined time by modifying the Expected Time column in the WorkFlow Version table for the workflow to which the item is associated.

If the requested item is associated to an execution plan, then the delivery date is calculated based on the time it takes to complete the execution plan. The delivery date is calculated using the Total Delivery Time column in the Execution Plan table.

Internally, the delivery date is calculated as follows:

  1. Fetch the current date.
  2. Fetch the time it takes to complete the workflow or execution plan associated to the requested item.
  3. Add the fetched time to the current date to get the Delivery Date of the requested item.

In the following scenario, three items have been ordered:

  • KeyBoard (associated with the execution plan named IT Service Hardware)
  • Mouse (associated with the workflow named Service Catalog Request) 
  • Headphones (not associated with a workflow or execution plan)


Checkout page for the order: 

The Delivery Date and Estimated Delivery Date of complete order is shown. To find out how it is calculated, navigate to ServiceCatalog > Maintain Items

The keyboard item is associated with an execution plan and the delivery date is calculated according to the time it takes to complete the execution plan. The delivery date is calculated based on the total delivery time of the execution plan.

The mouse item is associated with a workflow. The delivery date is calculated according to the workflow schedule.

 

 

The headphones item is not associated with any workflow or execution plan, so, by default, it is associated with the execution plan named Default. The delivery date is calculated according to the Total Delivery Time of the Default execution plan. 

 

 

Note: If the catalog item does not an associated workflow or execution plan, by default, the execution plan named Default is assigned.

 

Article Information

Last Updated:2018-01-08 05:36:52
Published:2018-01-08
1_Order_Status.png2_Catalog_Items.png3_Execution_Plan.png4_Workflow.png5_Workflow_Version.png6_Execution_Plans.png7_Execution_Plan.png