Hi there,
When creating a recurring order with a future start date, the start date takes the current time (of placing the order) into account:
if (DateTime.TryParse(Context.Current.Request["EcomOrderRecurringStartDate"], out dateValue) && dateValue.Year != 2999)
{
startDate = dateValue.Add(DateTime.Now.TimeOfDay);
}
So, when I create an order at 23:15 today to start tomorrow, the order won't be created until tomorrow 23:15, regardless of the time set in the start date parametyer. This then only sends it to the ERP at that time which means it can be far too late to be processed that day.
Is there a way to force the time to midnight of the start date or to some other time? And if not, could that be added? The simplest approach seems to let the variable EcomOrderRecurringStartDate define the time which is then used as-is. Or maybe on the Place Recurring Orders scheduled task we can have an option to include all orders for today regardless of their time of day? I guess that last option would also mean changes to GetFutureDeliveriesList somehow to ignore the time portion there when calculating future deliveries,
Thanks!
Imar