ty for the code . work perfect but i think something wrong , one of my users can’t void anything and found his user in report
Does it say he actually voided anything or does he just show on the reportl
Its probably because the format for that report your telling it to list all users with o.user i think, kendash will be able to verify that
It means that user voided something if he’s not supposed to then you might investigate how he was able to. The data doesn’t lie.
The report should give enough data to find the ticket.
Sorry for the confusion. I’ve named it as O.User but in fact it is CreatingUserName
on database side. In other words it is who created the order not who voided. We store voided user id within order state but I think it is not accessible atm. I’ll try to add a field to read state user.
Ok so that report is not valid then unless users not allowed to open other users tickets.
I think we already have it. OSU.GStatus
will return user last updated GStatus
state.
[Voids Detail:1,1,1,1, 1]
>User|Time|Item|Quantity|Total
{REPORT ORDER DETAILS:OSU.GStatus,O.Time,O.MenuItemName,O.Quantity,O.TotalPrice:(OS.GStatus=Void)}
These are all order state related fields.
OS.<state name> Order State
OSD.<state name> Order State Date
OST.<state name> Order State Time
OSV.<state name> Order State Value
OSU.<state name> Order State User
How to make report just sold item? not include void and gift.
Im using a similar report, and i have a special GStatus with value ‘Promotion’
I need to filter them out, but this doesnt seem to be working.
[Items Sold under Promotion: 5, 2, 2,1]
@{REPORT ORDER DETAILS:O.MenuItemName,O.ExactTotal.Sum.desc:(ODI=True):{0}:,}
{REPORT ORDER DETAILS:O.MenuItemName,OSV.GStatus,O.Quantity.Sum.desc,O.ExactTotal.Sum.desc:(ODI=True) and O.MenuItemName="$1" and (OSV.GStatus=Promotion)}
how can i added entity name in this report. can you help me?
specifically…
EN.<entity type> Entity Name
How could I add there ticket tag name?
Add ticket tag to what?
Hi I managed to group my report by EN.Customer but am not able to add Sub total for every customer, Kindly assist. Below is my template;
[Paid Tickets:2,2,2,2,2,3,2]
>Date|Time|Ticket #|Ordered By|Gifted By|Menu Item|Amount
@{REPORT ORDER DETAILS:EN.Customer:(TS.Status=Paid) and (OS.GStatus=Gift):,}
>>$1
{REPORT ORDER DETAILS:T.Date.asc,T.Time.asc,T.TicketNumber,O.User,OSU.GStatus,O.MenuItemName,ON.TotalPrice:(TS.Status=Paid) and (OS.GStatus=Gift):(EN.Customer=$1)}
>Total||||||{REPORT ORDER TOTAL:(TS.Status=Paid) and (OS.GStatus=Gift)}
At a guess its because you dont have the (EN.Customer=$1) expression included in your customer subtotal.
When I add (EN.Customer=$1) total returns blank
Please repost the report, perhaps you put in wrong place.
Maybe it should be TEN.Customer
Are you sure it’s Customer and not Customers
Thanks so much @JTRTech you were right its customers and TEN.Customers worked like a charm. Sorry I took too long to respond.
[Paid Tickets:2,2,2,2,2,3,2]
>Date|Time|Ticket #|Ordered By|Gifted By|Menu Item|Amount
@{REPORT ORDER DETAILS:EN.Customers:(TS.Status=Paid) and (OS.GStatus=Gift):,}
>>Gifted To : $1
{REPORT ORDER DETAILS:T.Date.asc,T.Time.asc,T.TicketNumber,O.User,OSU.GStatus,O.MenuItemName,ON.TotalPrice:(TS.Status=Paid) and (OS.GStatus=Gift) and (TEN.Customers=$1)}
>>Sub Total||||||{REPORT ORDER TOTAL:(TS.Status=Paid) and (OS.GStatus=Gift) and (TEN.Customers=$1)}