Well, thats strange. Could you please show me your task template?
For testing purposes, I’ve also added the {ORDER UID} to Bar Orders printer template and to the body of Task template. Although the actions that fire the printing job are exactly the same for the Task printer and Bar printer (except for printing job obviously) and they are both fired at ticket closing, this is what I’m getting:
ORDER UID in the message shown on order added to ticket:

ORDER UID printed on the Bar order:

ORDER UID as shown in the task:

Entry in the Tasks table:

Entry in the Orders table:

No matter what I try, the UID saved in the task is different to the actual ORDER UID of the order.
Here are my templates:
Task template:
[LAYOUT]
{ORDERS}
[ORDERS]
++{ENTITY NAME:Table} {ENTITY NAME:Customer}
(Id={NAME}-{ORDER UID})
(Quantity={QUANTITY})
(Table Name=<size 24>{ENTITY NAME:Table} {ENTITY NAME:Customer}</size><size 1><color #FF093367>{ORDER NO}</color></size>)
(Time={DATE:HH\:mm})
{CALL:kitchen.kitchenColor('{ITEM TAG:Kitchen Group}')}<size 21><bold>[=('{QUANTITY}'>1 ? ('{QUANTITY}'+' x ') : '')]{NAME} {ORDER UID}</bold></size></color>
{SORTED ORDER TAGS}
[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Polívky,Hotovky,Sladký,Smažený,Minutky]
[ORDERS:Void]
++{ENTITY NAME:Table} {ENTITY NAME:Customer}
(Id={NAME}-{ORDER UID})
(Quantity={QUANTITY})
(Waiter=<size 34>[=('{QUANTITY}'>1 ? ('{QUANTITY}'+' x ') : '')]{NAME}: <bold>{ENTITY NAME:Table}[=('{ENTITY NAME:Customer}'=='' ? '' : ' {ENTITY NAME:Customer}')]</bold></size>)
(Table Name=<size 24>{ENTITY NAME:Table} {ENTITY NAME:Customer}</size><size 1><color #FF093367>{ORDER NO}</color></size>)
(Time={DATE:HH\:mm})
<color red><size 21><bold>STORNO: {QUANTITY} x {NAME}</bold></size></color>
{SORTED ORDER TAGS}
[SORTED ORDER TAGS]
{CALL:kitchen.kitchenColor('{ORDER TAG NAME}')}<size 19><bold>[=('{ORDER TAG QUANTITY}'>1 ? ' + '+{ORDER TAG QUANTITY} : ' + ')]{ORDER TAG NAME}</bold></size></color>
Bar orders template:
[LAYOUT]
{ORDERS}
<J11>{TIME}|{ENTITY NAME:Table}{ENTITY NAME:Customer}
[ORDERS]
<L11>{QUANTITY}x {NAME} UID: {ORDER UID}
{ORDER TAGS}
<F>-
[ORDER TAGS]
-- Format for order tags
<L11> * {ORDER TAG NAME}
[ORDERS:Void]
<J11>- {QUANTITY} {NAME}|**STORNO**
{ORDER TAGS}
I’ve replaced (Id={ORDER UID}) with (Id={NAME}-{ORDER UID}) as you can see from the screenshots. The task printer knows what order we’re talking about. If it did not, it would not print the correct order at the first place.
I do not have an issue with voiding items. Voided items are shown correctly on the kitchen display - in red and with ‘STORNO’ at the beginning. What I need to do is to find the original task in the database and mark it so that it does not show up on the waiter screen or to show it with the correct quantity after the void.
Thank you