2651
правка
Изменения
м
→Calculating the Nearest Possible Delivery Date
# The calculator asks for the minimum number of workdays it takes to deliver the order to the city of receipt, considering the urgency mode selected by the user.
# The system calculates the current time of the courier service server to correct the time zone, and compares the time with the value of the '''End of business day''' variable. If the current time of the courier service is greater than the time specified in the variable, 1 workday is added to the delivery time.
# The produced number of workdays is added to the current date. By default, the system considers the days listed in <mparam code="DefaultHolidays"/'''Variables''' > '''Defaults''' > '''Holidays and Weekends for Calculations''' as days off, and then it applies unscheduled workdays and days off (holidays) entered in the catalog to them.
This algorithm allows you to completely set up the control of the date entered by the user not to allow them to submit schedule delivery for the day after tomorrow from New York to Las Vegas at an economy rate, or to submit intra-city delivery for online stores for tomorrow after 8:00 p.m.
At the moment, manual order placement and import from Microsoft Excel follow these rules. In the API, the system only calculates the minimum dates and if the scheduled delivery/pickup date is less than the nearest possible date, the date automatically changes to the earliest possible one.