Printer Template Formatting Tags

You would need to set the constraints inside the rule that fires the print job… not inside the printer template. So wherever you put the print job that prints this template you should put some custom rules like. {STATE:Status} Equals Submitted or {STATE:Status} Equals UnPaid or {STATE:GStatus} NotEquals Void

Thanks @kendash however have tried both of these with no luck.

state is not void still prints a void
state is submitted or unpaid prints nothing at all either new or void.

Do you have any ideas about formatting on windows printer option?

So you added custom constraints to the rule that handles the Print Action that prints your template? Can you show the rule that is firing the Print Job action?

this prints nothing

Ticket Closing event will not read Order Status it will read ticket Status. You have to find a different event that can read order status. You can try Order State Updated event. And use State Equals Submitted

This will fire it only when the order state is updated to submitted… meaning it will not print for voids.

It wouldnt want to be on order added else it would print any mistakes which are then canceled!?!

Getting some very bizarre behaviour;

With rule setup as above, order state updated matches state = submitted

it seems to not print the first item, ie just rang in two dishes, it only printed the second one !?!

also still prints voids but only the second one again!?!

the defult options for state seem to be ticket/entity states ie. available, bill requested, gift
no submitted

That could be a template issue.

template is very basic

{ORDERS}



[ORDERS]

-- Normal Order Format

<J00>{TICKET DATE}-{TIME}|#{TICKET NO}

<L00>Customer:{ENTITY NAME:Customers}

<EB>

{NAME}

<DB>

{ORDER TAGS}



[ORDERS:Gift]

-- Gift Order Format

<J00>{TICKET DATE}-{TIME}|#{TICKET NO}

<L00>Customer:{ENTITY NAME:Customers}

<EB>

{NAME}|**GIFT**

<DB>

{ORDER TAGS}



[ORDER TAGS]

-- Format for order tags

* {ORDER TAG NAME}



[ORDERS:Void]

-- Nothing will print for void lines

<EB>

{NAME} **VOID**

<DB>

have left the void setting in there to try and make more clear if its printing voids as without it it used defult order template

Not all states have to be defined under Settings > States that is only if you want it associated with reports or Color Changes. Obviously you do not need color changes for order states so no need to define them there.

Why do you have Ticket Date time, Ticket Number etc under [ORDERS]? Your wanting it to have that for each order?

Oh, that was my first attempt to not print voids by having no content uver the [ORDERS: void]

The labels will be printed on an order per page with the option on the print job options

it is to print labels for each dish for takeaway

Ok so you need to fix your template if you want nothing to print for Void orders then you should take out {NAME} **VOID**

Also you shouldnt put the ticket information under [ORDERS]

Also try justification for everything under formatting. Example

[ORDERS]
<EB>
<J00>{NAME}
<DB>
<J00>{ORDER TAGS}

OK but still no luck;

<J00>{TICKET DATE}-{TIME}|#{TICKET NO}

<L00>Customer:{ENTITY NAME:Customers}

{ORDERS}



[ORDERS]

-- Normal Order Format

{NAME}

{ORDER TAGS}



[ORDERS:Gift]

-- Gift Order Format

{NAME}|**GIFT**

{ORDER TAGS}



[ORDER TAGS]

-- Format for order tags

* {ORDER TAG NAME}

still results in voids being printed just it used the defult order tempate as if they have just been rang in

The formatting code doesnt seem to have any effect anyway in windows printer option…

Did you try the justification like I showed? And do not take [ORDERS:Void] out leave it just take out {NAME} from under it.

justified works but centre or eb/db does nothing.

The bold and center thing could be your printer drivers. But lets fix your template issues first. Your template is still wrong. Also you MUST have [LAYOUT] at the first line for some formatting to work.

<J00>{TICKET DATE}-{TIME}|#{TICKET NO}
<J00>Customer:{ENTITY NAME:Customers}
{ORDERS}

[ORDERS]
-- Normal Order Format
<J22>{NAME}
{ORDER TAGS}

[ORDERS:Gift]
-- Gift Order Format
<J22>{NAME}|**GIFT**
{ORDER TAGS}

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

Hows that?

Try this:

[LAYOUT]
  
<J00>{TICKET DATE}-{TIME}|#{TICKET NO}

<L00>Customer:{ENTITY NAME:Customers}

{ORDERS}
        
[ORDERS]
  
-- Normal Order Format
   
<EB>
   
<J00>{NAME}
   
<DB>
   
{ORDER TAGS}
    
[ORDERS:Gift]
 
-- Gift Order Format
    
<EB>
    
<J00>{NAME}|**GIFT**
    
<DB>
    
{ORDER TAGS}
    
[ORDER TAGS]
   
-- Format for order tags
    
<J00>* {ORDER TAG NAME}
    
[ORDERS:Void]
  
-- Nothing will print for void lines