I have followed some Tutorials (V5 and V4 Sambapos) to create a button on sale screen to print lastTicket. Ticket is Paid, Printed and closed normally.
I need to Print Last Ticket on Sale Screen. Someone knows a step by step Tutorial to Print Last Ticket from Sale Screen?
For exemple following link. I can always NOT print my last Ticket.
1- I dont see what you have under :Message Test Action (it is not visible)
2- Under Entity Customer: I have created a new Field : LastTicketId (number string)
i have realised that is not saved.
It must be same name in Entity Customer and under AC-StoreLastTicket as shown in your Tutorial?
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}