Add "Day of Week" discount drop down
Opened this issue · 5 comments
Instead of specifying a discount on the orders, there will be dropdown called "Single Day Discount"
A day of the week can be selected
Any orders that are made on that day get 50% off room rates
Ex: Single Day Discount is set to Thursday
Order for Mahjong room closes out at 10PM on Thursday, at $100. Snacks and drinks is $20. Bill is $120 total
Discount is applied and their total is $50 + $20 = $70
Same thing if it closes out on 2AM on Friday, because we still consider that Thursday night
- Add dropdown with options for: (DISABLED, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday)
- Depending on the selection of the dropdown, the orders will be affected if they are on that day
- Add property on order so we can track which orders receive the single day discount
- Add something in admin panel so we can see how much is lost to Single Day Discount every week
As in #98, this is best handled after we change our database to capture the actual amount charged, in a receipt-style tally item-by-item.
We can add in a negative-priced item for "discount` onto each order,
which we can then tally up into the admin panel.
At the moment employees need to hit the % discount button on each day before the first order.
To schedule certain discounts for certain days, we would want to schedule some kind of CRON job that pings our API appropriately.
Is it possible for the employee to just pick a specific day, and then when the order is created (or when you go to checkout), it checks the day against that picked day, to see if the discount will be applied?
would like to avoid cron
but yeah this is dependent on knowing the itemized list, because we only want to discount the rooms, not the goods
@MattyAyOh, here's a possible workflow:
It would go through the /admin
page, so you or Charlie would be setting it; not the cashier.
How's it look?
UX looks good to me, just needs a "No Day" option as well
Do the 4 subtasks in the description still work?