REPORT TICKET TYPES can filter by ticket type?

Hi,

Everything is in the title.
I have 2 ticket types:

  • Ticket : For Sales
  • Internal-TKT : for internal transactions

I am not interested in internal transactions when I want to see the sales, so I would like to use:
REPORT TICKET TYPES

For instance, I can see that !PreOrder or TotalAmount >= 0 can filter the result and I would like to know if there is a filter like:
Ticket Type = Ticket

Thank you!

Apparently,

REPORT TICKET TYPES
REPORT REFUND PAYMENTS
REPORT TICKET STATES
REPORT ORDER STATES

Cannot take (TY=Ticket) as parameter

So to replace:

[Ventas:1, 1]
{REPORT TICKET TYPES:!PreOrder && TotalAmount >= 0}

I use:

[Ventas:1, 1]
Ticket|[=F(TN('{REPORT TICKET TOTAL:(TY=Ticket)}')-TN('{REPORT CALCULATION TOTAL:(TY=Ticket)}'))]
 Discount|{REPORT CALCULATION DETAILS:C.CalculationAmount.Sum:(TY=Ticket)}
GRAND TOTAL|{REPORT TICKET TOTAL:(TY=Ticket)}

It’s not nice but it works, I got the sales only for the type of ticket = Ticket.

2 Likes

Those tags above are not custom report tags they are hard-coded tags to do specific task hence no support for fields or expressions only basic jscript with limitations is possible.

1 Like