mills
-
Posts
7 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by mills
-
-
3 hours ago, deanishe said:
I'm happy to help further, but you need to be a lot clearer about how you calculate your delivery dates.
Honestly, for the purpose of this expansion this is perfect. In theory an order could be placed early enough on a Friday and approved for production that it could go a day earlier, but it's not the most common; similarly an order placed Sunday may be submitted and shipped earlier than one placed Monday because of production workflows. All of the dates are provided as estimates, so seriously, thank you so much, and this will do exactly as necessary.
-
-
Oh right, that's true. Technically the Friday could still be a day earlier, so only Sat & Sunday should share the estimated result
-
-
That is awesome, thank you so much. I don't think the holiday thing is as relevant for this purpose, so this is fine.
I should probably learn python.
I did notice that I can add 0 days and get today's date, but adding 1 goes to Monday, which makes sense given the way the data is defined in main, but what would I need to do to parse that out? Basically so if someone said "I want to know when I'll get this if I order on Sunday" I would be able to get that answer.
Would I need to define a new function and pull the 'ordered' out so that it just adds date + n, no matter what day of the week?
-
I have a workflow (here) which works well to take trigger a snippet with calculated days, however, I'd like to make it exclude weekends (or alternatively include only business days), but I'm unsure how to go about doing that. I am assuming a script filter would need to be placed between the initial input of "number of days ahead" and all calculations based on that input.
Modified date calc based on input
in Workflow Help & Questions
Posted
@deanishe
Okay so it's working as intended entirely, however I'm now curious if I could create ordinals in the formatting. My python being entirely atrocious, I'm unsure where to interject it. The modified workflow is here, if you'd be willing or able to help.
I did modify to output "Today" when N = 0 and another date by adding two variables, 'rawdays' & 'd7' respectively.
I did find this solution, but I was not able to see how it would be placed in the script.