Thank you @emre, this worked.
After some tweaking I got it working and it’s already the best Kitchen Display I ever used on Samba (plus the automation is simple and straightforward). I would like to publish it in the forums once it’s finished.
I have a minor issue with voids (not a dealbreaker at all but would be nice to understand what’s going on):
Here I add two orders, it shows nicely on the KD. I VOID one of them, and look at the KD for the first time - so far so good. After visiting another entity screen and coming back to KD the voided item shows twice.
Funny thing is that this only happens when I visit another entity screen with Task Editor widget. Other entity screens won’t mess it up. When I add order, close ticket and void the immediately without visiting KD it shows twice right on the first try.
Here is my template:
[LAYOUT]
{ORDERS}
[ORDERS]
++{ENTITY NAME:Table} {ENTITY NAME:Customer}
(Id={ORDER UID}-{NAME}-{TICKET ID})
(Table={ENTITY NAME:Table}-{TICKET ID})
(Table Name={ENTITY NAME:Table} {ENTITY NAME:Customer})
(Customer={ENTITY NAME:Customer})
(Product={PRODUCT NAME})
(Quantity={QUANTITY})
(Time={DATE:HH\:mm})
<size 24><bold>[=('{QUANTITY}'>1 ? ('{QUANTITY}'+' x ') : '')]{PRODUCT NAME}</bold></size>
{SORTED ORDER TAGS}
[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Polívky,Hotovky,Hlavní]
[ORDERS:Void]
++{ENTITY NAME:Table} {ENTITY NAME:Customer}
(Id={ORDER UID}-{NAME}-{TICKET ID})
(Table={ENTITY NAME:Table}-{TICKET ID})
(Table Name={ENTITY NAME:Table} {ENTITY NAME:Customer})
(Customer={ENTITY NAME:Customer})
(Product={PRODUCT NAME})
(Quantity={QUANTITY})
(Time={DATE:HH\:mm})
(Color=Red)
<size 24><bold>[=('{QUANTITY}'>1 ? ('{QUANTITY}'+' x ') : '')]{PRODUCT NAME}</bold></size>
{SORTED ORDER TAGS}
[SORTED ORDER TAGS]
<size 24>[=('{ORDER TAG QUANTITY}'>1 ? ' + '+{ORDER TAG QUANTITY} : ' + ')]{ORDER TAG NAME}</size>
I would also like to set up a waiter screen. I was thinking of an easy way of firing an automation command once a task is completed (passing an Id or whatever is needed to the rule) and printing a task. I’ve been trying hard but I can’t figure out how to pass the Command Value to the Task_Print_Job Action:
I don’t know what kind of data and in what field the Execute_Task_Print_Job action needs so that it “knows” which order I’m reffering to.
I could even prepare the data in the KD_Task_Print_Template like (Waiter={PRODUCT NAME} - {ENTITY NAME:Table}) and only pass ‘Waiter’ as a command name and let it be printed as a Task.