Oyseka Posted October 20, 2009 Posted October 20, 2009 Hi all, I need to change the date,(or the reporting date), in a point of sale system to reflect a working day rather than an actual day. The system is in a restaurant and bar and as the bar may not close until after midnight on occasion, the invoices generated need to reflect that period. The date field however is an auto enter non modifiable field, as it should be. I can not think of an elegant way to bring these extra invoices in to the day's report. Can anyone point he way ?
LaRetta Posted October 20, 2009 Posted October 20, 2009 (edited) I am unclear whether to kick the date (of weekend activity) forward or back. If forward to the next Monday, try this calculation (result is date) and generate your reports on it: date + Position ( "17" ; DayOfWeek ( date ) ; 1 ; 1 ) UPDATE: If kicking the date back, use: date - Position ( "71" ; DayOfWeek ( date ) ; 1 ; 1 ) Edited October 20, 2009 by Guest Added update
Oyseka Posted October 20, 2009 Author Posted October 20, 2009 Hi LaRetta, I think that I need to take the additional hours of the next day and add any invoices created then to the previous day so that if an invoice was created at 02:30 am on Wednesday, it would come out on the Tuesday turnover reports. The problem is that there are no set hours so it may be 1 hour after midnight or 7 hours after midnight and then there is the problem of Saturday as the restaurant is closed on Sunday
LaRetta Posted October 20, 2009 Posted October 20, 2009 The problem is that there are no set hours so it may be 1 hour after midnight or 7 hours after midnight and then there is the problem of Saturday as the restaurant is closed on Sunday Okay, then you need a set of business rules because the system can't determine the proper date if the open-for-business times change. Have you considered a table where you can track date, time open and time end for your restaurant? That would make it possible to track and kick the receipts backwards if they are outside the standard business hours for that specific receipt date. Otherwise, you will need to come up with a standard set of 'open hours per day' for the business so you can apply the calculation to it.
Recommended Posts
This topic is 5572 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now