I have a case where i have to create a report everyday for the items that are on their last day of completion for that day. The thing is since our working days are from mon-fri . On friday we have to compile reports that also shows the items that needs to be completed over the weekend or any public holiday.
For example:
There are three items namely abc,def,ghi that needs to be completed today. Today is lets say "monday"
I will send an email out that the below items are to be completed today:
abc, def, ghi
The same continues until friday comes. On friday i have items namely 12a,13a,14a , and i can also see items that needs to be completed on saturday (namely 14b,15b,16b) and sunday (14c,15c,16c) (but no one is working on those days hence i need to send all the items for fri,sat and sun on friday email. hence i will send the below email
There are three items namely 12a,13a,14a, 14b,15b,16b, 14c,15c,16c that needs to be completed today
Now i have built a counter that assigns an indicator for items from mon-thur and another for fri items that inculed next three day items. What i want to do is include public holidays since i have an app that can calculate for sat and sun. But what i want to do is use a loop for the app to automatically check the number of off days in advance. Lets say there is off on sat and sun and a public holiday on mon and tue. My app can calculate for sat and sun but for mon and tue i have to check manually the items for those days that needs to be completed before the off-day period begins. i want my loop to automatically pull items for the recurring days which are holidays instead of checking manually.
The idea i have is to create a file which contains all holidays and sats suns that are there in a year and use this file so as the app matches the dates of the week in advance to see is there are recurring holidays on the next day from which the items are sent.
I would like if anyone can provide a logic as to how i can proceed to obtain this feature.
thank you