Skip to main content

Order rule action - CalculateRequiredDespatchDate

Tom Higgs avatar
Written by Tom Higgs
Updated over 2 months ago

The order rule action CalculateRequiredDespatchDate will calculates the required despatch date and assigns it to RequiredDespatchDate on the order. It is useful for batch processing based on RequiredDespatchDate to ensure orders are shipped on time.

  • Param Value: The number of days to add to the calculated despatch date.

Example

  • Action: CalculateRequiredDespatchDate.

  • Param: 1.

  • Choose your Conditions (For Example Courier Service Contains DPD).


Calculation Method

The system uses the GetDate function to determine the next available despatch date. It considers the following settings, which can be accessed via the Shipping Tab on the Customer Account Settings page:

  • DespatchCutOffTime

  • ShipOnSaturday

  • ShipOnSunday

  • Holiday Calendar (to check for non-shipping days)

Example Calculations

Example 1

  • Order Availability: Monday at 3 PM.

  • Despatch Cut Off Time: 2 PM.

  • Required Despatch Date: Tuesday.

Example 2

  • Order Availability: Sunday at 1 PM.

  • ShipOnSunday: false.

  • Required Despatch Date: Monday.

Example Use Cases

Use Case 1

For express orders, assign the required despatch date as the order date if received before the despatch cutoff.

Use Case 2

For standard orders, set the required despatch date to the next shipping day, as the standard despatch target is 1–2 days.

Did this answer your question?