Tutorial: Basic Print Last Bill/Receipt Button (JTRTech)

I know there are other similar tutorials but wanted to upload a simple quick one for ‘Print Last Bill’

First you’ll need to setup a rule to log the last paid ticket.
This is uses a update program setting action used in many setups and your likely to already have so havent’t gone into that. You could use local but I have used ‘not local’ and logged against program setting of LASTBILL_{:CURRENTTERMINAL}
Have added the two constraints to only log tickets that are closed with no remaining balance and a total thats not zero
which will generally be you paid tickets.

Next you’ll want a Button (Automation Command)

As a print bill action will automaticly print the current ticket if if a ticket is open.
Easiest way to avoid this button printing current bill is to make it only visible when there is no open ticket using Status=

You’ll need an action to print a specific ticket. Note the [:Ticket ID] this will carry the field to the action instance in the rule.

Lastly you’ll need the rule to power the automation command.
The {SETTING:LASTBILL_{:CURRENTTERMINAL}} will call the saved ticket ID from the program setting for the current terminal.

7 Likes

PLEASE NOTE THERE WAS A SPELLING MISTAKE IN ORIGINAL POST
{:CURENTTERMINAL} was used, this should be {:CURRENTTERMINAL} - TWO R’s
Have corrected the text but the screen shots still show incorrect spelling.

2 Likes