Add Print Button to print selected Tickets

Try something like this:

Add Actions for Load Ticket and Lock Ticket.
Add them to the Rule that executes the Print Job.
You may need to also add a Close Ticket Action to that Rule.

The other thing to keep in mind is that Lock Ticket is both a flag on the Ticket as well as a Ticket State. So it might be a good idea to add an action for Update Ticket State to the Rule as well.

You may need to play around with the order of the Actions, and I have not tested this. But this is how we learnā€¦ try it out!

@QMcKay So i tried thisā€¦ and it locks the last ticket at the bottom of the ticket list but does not lock the other ticketsā€¦ I did get it to update the entity state by adding Update Entity State: Bill Requested to the rule.

I dont think Lock Ticket will work because it can not accept a Variable to put Looped Value in it.

EDIT: Nevermind you are loading the ticket firstā€¦ I still am not sure if it would work though.

It also seems to only print the last ticket. My guess is its getting confused with all the Looped Values and getting stuck?

Might need to put Load Ticket action first.

I dont think computers can get confused? lol We just need to figure out the correct order of things and this should work.

You are testing on actual printer and not just notepad right?

Im using pdf creatorā€¦ Which goes through the print spooler of windows. So that It prints the tickets to a pdf for testing. Ive also printed to just a regular dell laserjet for testing and its the same results.

Changing Entity State is a different Action. By default, when a Bill is printed, the Entity State is set to Bill Requested. So you will need to add yet another Action to the Rule to update the Entity State to that value.

What @Jesse said. Where there is a will there is a way. We just need to determine the order of the Actions, and perhaps set up more Rules to achieve the desired result. That is just one of the great things about SambaPOS: it works the way you want it to - you just need to tell it to do so. :wink: