Printing from a Lynx Tablet with local database

Ok i have done this. new action created

Then create an order added rule with that similar to this;

Then make a new execute print job action similar to this, obviously selecting your print job name;

And a new ticket closing rule to trigger kitchen print using the new print action;

The print action being the new one set to only print KitchenPrint state of Kitchen Print (named differently that above screenshot as my setup is little more complex that you need and making the rules temp to show you.
Along with another use of the generic action to change the Kitchen Print state to Kitchen Printed so that they only print once of ticket closing
You would obviously remove the original kitchen print action from original ticket close rule

ok i have set up all the states and rules etc.

I have a kitchen print button as shown and a save and exit button.

the reason i have these is that we enter the drinks in and just save/exit and the order shouldnt get printed.

I have got the following actions and rules for the Print kitchen copy:

How would i include your rules within my setup?

Thanks for your patience

So you dont want it to print on save and exit only when doing print kitchen copy?

Thats right. All ive done is added print kitchen copy for the printing and the other button just adds any drinks/coffees etc and dont need the printing as these are added once the drinks/coffees are delivered/served

Try this in your Kitchen Template?

[ORDERS:PRODUCT TAG:Kitchen Group=Drink]
-- do not print drinks

NOTE: that ^ is different than my previous suggestion/guess


^ should be {GROUP CODE}

^ same thing, can be used interchangably in most cases. {ITEM TAG} is legacy, while {PRODUCT TAG} is more syntacticly correct. However, preference is to use {ITEM TAG} (or {ITEM TAG:X} for custom Product Tags).

1 Like

Not sure if you understand the flow of states but anyway.

From what I can see to achive what you want take out the ticket closing rule you added just now and put those same actions in in place of reprint kitchen ticket action.

The update state from kitchen print to printed will only happen then when you click the kitchen print button so it will only print to kitchen on that button press and then change the state so that it doesnt print again just from reopening the ticket and clicking it again it will only print new orders.

this seems to be working now. The individual drinks are not printing but im still getting the heading. The template is below:

[LAYOUT]

Date:{TICKET DATE}
Time:{TIME}


Table:{ENTITY NAME:Table}

Persons:{TICKET TAG:No. Of Customers}
Ticket No:{TICKET NO}

{ORDERS}

NOTE: {NOTE}




[ORDERS]
{QUANTITY} {ITEM TAG:KitchenName} {PORTION}
[ORDERS:PRODUCT TAG:Kitchen Group=Drink]
– do not print drinks
{ORDER TAGS}

[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Appetiser,Starter,Main,Sides,Rice,Nan,Sundries]

{GROUP KEY}
=

[ORDER TAGS]
– Format for order tags
{ORDER TAG NAME}

[ORDERS:Void]
– do not print voided orders
{ORDER TAGS}

{NOTE}

Main

1 Chi Tik Moss
1 Veg Moss
1 Duck Moss
1 Pr Moss
1 Lamb Naga

               Rice

==========================================

1 Boiled Rice
1 Keema Rice
1 Onion Rice

               Drink

==========================================

this is wrong;

Should be like this;

[ORDERS]
{QUANTITY} {ITEM TAG:KitchenName} {PORTION}
{ORDER TAGS}

[ORDERS:PRODUCT TAG:Kitchen Group=Drink]
-- do not print drinks

Square brackets are a ‘section’ definition.
[ORDERS] being default
[ORDERS:PRODUCT TAG:Kitchen Group=Drink] is specifying format for orders matching PRODUCT TAG:Kitchen Group=Drink

[ORDERS]
{QUANTITY} {ITEM TAG:KitchenName} {PORTION}
{ORDER TAGS}

[ORDERS:PRODUCT TAG:Kitchen Group=Drink]
– do not print drinks

[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Appetiser,Starter,Main,Sides,Rice,Nan,Sundries]

{GROUP KEY}
=

is this how it should be?

Looks ok but really need the formatting <> to really tell…
When pasting your template, before saving select the template code and click the </> on the toolbar which will highlight it as code as the <> tags are stripped from plane text.

[ORDERS]
<J01>{QUANTITY} {ITEM TAG:KitchenName} {PORTION}
{ORDER TAGS}

[ORDERS:PRODUCT TAG:Kitchen Group=Drink]
-- do not print drinks

[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Appetiser,Starter,Main,Sides,Rice,Nan,Sundries]
<L00>
<C12> {GROUP KEY} 
<F>=
<L00>

Looks good to me, hows that come out?

The drinks are not printing any longer but the Group Key - Drinks is being printed

For pasting a Printer Template you can use 3 backticks at the start and at the end:

```
printer template stuff
```

That ^ is my preference because it does not indent all the code, and you can easily mark the start and end of a block…


For a single line of code, you can use single backticks to surround the code:

Once upon a time there was `some code here` in the middle of a sentence.

Doing that ^ makes it look like the following with the code in-line:

Once upon a time there was some code here in the middle of a sentence.


Or you can select the text that you want to “code” and click the </> button …

(I don’t like this method because it indents all the code and makes it difficult to edit later)


P.S. the backtick is in the upper-left of your keyboard, under ESC, on the same key as Tilde ~

2 Likes

Id guess the use of the list is just to specify order not only show…
Try this;

[ORDERS]
<J01>{QUANTITY} {ITEM TAG:KitchenName} {PORTION}
{ORDER TAGS}

[ORDERS:PRODUCT TAG:Kitchen Group=Drink]
-- do not print drinks

[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Appetiser,Starter,Main,Sides,Rice,Nan,Sundries]
<L00>
<C12> {GROUP KEY} 
<F>=
<L00>

[ORDERS GROUP|PRODUCT TAG:Kitchen Group:Drinks]
-- do not print drinks key
1 Like

Fantastic. This has sorted it out. Sorry for taking so long but you’ve been great. Thanks for all your help @JTRTech and QMckay.

Nearly finished doing everything on the system now. Just waiting for some kind of online integration :smiley:
Maybe the Gloriafood platform which im starting to use from next week may help

1 Like

Apologies for not giving some insite into what I wanted to suggest, the reason being was after going over your post again, what I wanted to attempt may possible have changed the flow of your setup, and that was something I didn’t want to do, because I had a feeling you did it that way for a reason, then JTR and QM took over. I’m glad it was sorted. Apologies again.