Void and gift report v5

what should i do to get report of void items and gift item
and another report for entity like table b11 to show all items entered and sold on this table

Take a look here for Custom Report Tags.

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

Here is a void detail report.

[Voids Detail:1,1,1,1, 1]
>User|Time|Item|Quantity|Total
{REPORT ORDER DETAILS:O.User,O.Time,O.MenuItemName,O.Quantity,O.TotalPrice:(OS.GStatus=Void)}
2 Likes

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 :slight_smile: 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.

:slight_smile: 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.

1 Like

Ok so that report is not valid then unless users not allowed to open other users tickets.

1 Like

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
4 Likes

How to make report just sold item? not include void and gift.

1 Like

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?

@emre can someone help me :)?

@Jesse can you help me?

http://www.sambapos.com/wiki/doku.php/custom_reporting_tags

1 Like

specifically…

EN.<entity type>                    Entity Name
2 Likes

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.

1 Like

When I add (EN.Customer=$1) total returns blank