Table transfer between waiters

Yes.

Show all of your rules and actions. We need to narrow it down. It is probably a typo.




Don’t have to load an entity. Change ticket entity is enough.

Got it working. The rule wasn’t “mapped”. I guess I just figured that rules were immediately mapped. Now how would I go about adding a button to “change waiter” to the current user and if possible have the current waiter or an admin input their pin?

I was able to create a “change waiter” button by creating an automation command and then running the action for updating the entity.

The only thing I’ve noticed is that the entity on the screen doesn’t refresh until I go in and out of the ticket. Is there anyway to refresh the ticket screen?

Put a display ticket action in the rule to run last put 0 for ticket id.

That worked great what does “ticket id = 0” mean?

Its displaying the current ticket.

If you put 1 it would display ticket 1

In order to complete the use of the “waiters” entity for me, I need to get a custom report working which will do an “end of shift” report based upon the “waiter” entity for people to count out.

I’m just starting to dive into the module (got it yesterday). Has anyone completed a report like this yet. Basically…

Select Payment Totals from Tickets Where Waiter Entity = Current User and Date* = *Current Work Period

?

Take a look here it shows all the possible tags for custom reports.

http://sambapos.com/wiki/doku.php?id=custom_reporting_tags

And this is the main Custom Reporting Wiki

http://sambapos.com/wiki/doku.php?id=custom_reporting

I think I got it figured out. Any way to access the current user within custom reports? What would that syntax be?

I’m thinking this should work.

Total: {Report Ticket Total:(EC.Waiters.Water = {:CurrentUser})}

?

Joe

Try this:

{REPORT TICKET TOTAL:(TEN.Waiters={:CURRENTUSER})}

PS Case sensitive… if its caps it has to be caps.

However there is one flaw with that syntax… what if current user is admin just to view reports?

If your tying users with Entities then it wont matter in the reports… you just need to look at sales per entity. Or Sales per User. What would be the purpose of linking the two in the report?

I would write a different report for the admin. This report is only for waiters at the end of their shift. Since tables are often transferred to a different waiter and then cashed out by that waiter I need to show totals at the end of the shift for that waiter based upon the waiter entity.

The idea of using CURRENTUSER is that only that waiter should be able to see their totals. I don’t think there is anything to gain from showing all waiter totals.

A follow up question, can you restrict certain reports for certain users? Ideally I want specific user or user groups to only be able to access end of shift reports and admins to be able to access everything.

If you use an Entity Screen and Report Widget yes you can restrict it. You simply map that entity screen to the user.

I’ve never created a customer entity or used the report widget. After reviewing what they do, I don’t think that’s what I’m going for. I simply want the waiter to be able to print out their report on a thermal printer with their sales at the end of their shift.

Ok so how do you want them to do this? You could create a button that prints a report named {:CURRENTUSER}. You make separate reports for each user.

That’s a great idea. I was going to have them go into the reports section, but your way makes it easier to restrict.

So if I create the report and the button, only question is how to call that report.

I don’t have SambaPOS in front of me right now (Had to format test computer) but I think there is Print Report action…You would use a variable for Report name like [:Report Name] and then in the rule you put {:CURRENTUSER} for Report Name.

Thanks Kendash. I’ll mess with it later and see what I can find.