I’ll show one more sample. You can review this sample how to implement even most complex cases by using ticket and order states.
SambaPOSPromo_201411102014SQM.zip (445.2 KB)
This sample also demonstrates how to implement happy hour without configuring triggers and it will be available to all terminals immediately.
You can change this to configure hh enabling rule.
… and this one to configure hh disabling rule.
@QMcKay might not work exactly aligned to your case. I’ve tried to implement constraints I’ve detailed on my previous post.
####Summary
For anyone who missed whole idea I’ll add a short summary here.
We’ve configured three level discounts for customers and each discount level configured individually for each product. For example D1 (think it as member discount) can be %10 for coffee but %5 for wine. Similarly D2 (gold member discount) can be %15 for coffee and %9 for wine. (you can also use fixed amounts instead of rates.)
However we also have Happy Hour implementation (HH Discount) so during happy hour we need to disable member discounts and only apply happy hour discounts. Also after HH period ends additional orders from members should automatically receive member discounts while preserving previous HH discounts. Also Customer switching or removing cases should be handled correctly. HH discounts also should work for tickets without a customer.
wow !! describing it was harder than implementing it