Are you wanting to print that customers last bill or just last bill paid?
If you want to log last ticket from that customer than yes, but you would need to have selected that customer before printing else it wouldn’t know which customer it refferws to.
If general last bill paid you need to use something like a global program setting field so its always available.
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.