I’ve created something working. It will give some idea about implementation details.
SambaPOS49_201411021844SQM.zip (444.0 KB)
Use Activate Ticket Discount
& Deactivate Ticket Discount
actions to enable/disable (refresh) discounts.
Use Activate / Deactivate Order Discount
actions to enable disable discounts for specific orders.
Important Note: I’ve added Hard Refresh Ticket
action to refresh order display but it won’t work for new created tickets and we shouldn’t refresh tickets as demonstrated there as it basically closes & reopens ticket. On next version it will automatically update order lines after entity selection so no refresh will be needed.
Note 2: Displaying custom fields issue is related with screen customization feature. I’ll try to improve that too. To display them right click on screen, enable customization and drag new fields from Available Fields
section.