What tag should I add to print DELIVERY in the template?

When starting an order with “Customer Search”, I notice the Ticket is at “Delivery: Waiting” and the Ticket Type is Delivery Ticket after closed. So I have tried to print the word DELIVERY on the Kitchen Tickets and the Receipt Tickets but without success, what is the proper tags or syntax to do so?

-- Kitchen

[LAYOUT]
<j11>Ticket No:{TICKET NO}
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
<L00>Table:{ENTITY NAME:Table}

<F>-
{ORDERS}

[ORDERS]
-- <J11>- {QUANTITY} {NAME}
<J11>- {QUANTITY} {NAME}|  {TOTAL PRICE}
<L11>  {ITEM TAG:Chinese Name}
{ORDER TAGS}

<L00>     . . . . .

[ORDERS:Void]
<J00>- {QUANTITY} {NAME}|
<J11>**Void**
{ORDER TAGS}

[ORDERS:TAKE OUT]
{ORDER TAGS}
<J11>- {QUANTITY} {NAME}|  {TOTAL PRICE}
<J11>** TAKE OUT **

[ORDER TAGS]
-- Format for order tags
<L11>     * {ORDER TAG NAME}
-- END Kitchen

this being what? ticket state?
we cant tell you the template expression to use for dynamic content without knowing what methodology your using.
Look at the template help.

If all you want is the word delivery then just add line <J00>Delivery if you want it based on something like ticket type then explain more of how you want it to work.

If you want it based off ticket type then create a separate print job with a separate template that contains the word and map it to the delivery ticket type.

1 Like

Try this:

[='{TICKET STATE:Delivery}' != '' ? '<L00>DELIVERY' : '']
2 Likes

Thanks for the hint!

Will try this method as well and report back when done

It is a Ternary Expression, like IF THEN ELSE.

[=TEST ? TRUE : FALSE]

The part before ? is the test condition.
The part after ? is what to do if the test is TRUE.
The part after : is what to do if the test is FALSE.

IF ('{TICKET STATE:Delivery}' != '') THEN print 'DELIVERY' ELSE print ''
    '{TICKET STATE:Delivery}' != ''    ?        'DELIVERY'   :        ''
2 Likes