Following steps are done:
1- Action to store Last Ticket ID using Update Programme Setting
2- This action added into Print Bill Rule with Mappings
3- Automation Command Button is created
4- Load Ticket Action is created.
5- Rule is Created for Automation Command.
@Adam1 all what i did to print last Ticket, are in pdf file. It is visible on it. But Problem is not resolved,i cannot print my last paid and closed Ticket. Any Proposition?
Try changing the setting name to: {LOCAL SETTING:LastTicketId}. Edit
Opps. sorry forgot the local setting option is set to False, meaning it is global setting. Change the setting to {GLOBAL SETTING:LastTicketId}
I want to make sure you understand what is happing. It looks you have it setup with a button to print the bill.
When pressed, it will store the Ticket ID in the settings.
You have another button called PrintLastBill, when pressed it print the last bill printed.
One problem with that setup is: If any terminal prints a bill in-between the 2 steps above, that will become the new Print Last Bill.
Some of you setups do not look correct:
AutomationCommanName should have some spaces. Select it from the drop down an all of your rules. {LastTicketId} is not a valid tag. It is storing the literal text of {LastTicketId}. You want to store the Ticket Id there. The proper tag should be {TICKET ID}.
I suggest to start over and use @JTRTech tutorial. Where ever it show to put {SETTING:LASTBILL_{:CURRENTTERMINAL}} use `{GLOBAL SETTING:LASTBILL_{:CURRENTTERMINAL}}’
This will eliminate the possibility of another terminal over-writing the setting (it uses terminal names in the setting names). If you are only using 1 terminal, and add another terminal in the future, you will not have to re-do anything with the print last bill.
@Bob_be i have both. 5 and 4. Most of Tutorials are made for v4. I have installed this one in other computer. I would like to see why it is not going. But no success !!!
maybe i need to say: in Ticket Closing i have rule, after payment ticket is printed and closed automatically. Problem?
If your wanting to print a ticket after payment, that sounds sensible to me. Look at JTR’s rules on how he did it.
Make sure when you are testing you are setting the Ticket Id before trying the Print Last Ticket. If you make changes in the Rules and go directly to Print Last Ticket, the Ticket Id may not be set.
The space in carried field from action is a best practice as it is posible to specify a rule specific variable in square brackets with the same name which is a PITA to debug if you didn’t realise the issue.
Using field names with spaces is sure way to avoid this potential issue.
The name of a carried field is irrelevant so long as you know what it relates to its all good but recommend at least 2 words with a space for above reason.
@Bob_be Maybe there is another Way to print/or not Print a Ticket just after Payment?
Going to Ticket, open this and Print it again wiht Print Bill, takes time. Need a short way to print if needed.
You can have print as an optional end of sale prompt.
Not sure if it was added but I’m sure my show change tutorial included optional adding for optional print copy receipt below change.