Ticket Tags - Tendered, Change, Payment Type, CCinfo

Yes you can make it only show a numeric keypad not entire keyboard. and restrict it to specific input. It is near bottom of this tutorial.

1 Like

Wow, very cool! So this would work better as of v4.1.61 …

[?Credit Card last 4 Digits;\d{4};;ON]

Did I get that correct for: Require 4 digits, Ok button, Numeric Keypad?

1 Like

looks right to me :stuck_out_tongue:

1 Like

Can also be used in the various discount tutorials… making them even better :stuck_out_tongue:

Nice. I updated the Tutorial with the following, when running v4.1.61 or later…

[?Credit Card last 4 Digits;\d{4};;ON]

3 Likes

yes, that is really a GREAT feature!!!

G.

Hello, Thanks for your Tutorial, I pursue it step by step to reach this part.
But when the ticket reopens and settle the payment again, Both the new & the history indicated on the ticket print.

Is there any method to clear the OLD record for reopening a ticket?

Thank You.!!!

It should be possible.

Let’s take a look at what we’re storing in Ticket Tags, and how they are being stored.

The Ticket Tag Name is to the left of the colon (:) and the Tag Value is to the right of that.

These Ticket Tags would be easy to clear, since their Names are not dynamic (the Names don’t contain DateTime):

TND
CHG
CCtype
CCdigits

These Ticket Tags will be a little more difficult because DateTime is part of their Name as well as the Payment Type, so I’m not sure if it can be done:

PMT 14.30.253 [Credit Card]
PMT 14.30.802 [Cash]

For the “easy” Ticket Tags, we need to create an Update Ticket Tag Action to fire when a Ticket is Re-opened and Payments are Cancelled. This Action can go in the same Rule that handles the “Re-Open” Automation Command.

Action - Update Ticket Tag:

Rule - modify the Rule that contains the Cancel Payment Action, and add 4 Clear Ticket Tags Actions:


@emre, for the “difficult” Tags, is there anything we can do? I see there is an Event for Ticket Tag Selected, but there is no accompanying Action … can we use this Event somehow?

I am unable to get desired result

[Payment Detail:2,2, 2]
Payment|Type|Total
{REPORT TICKET DETAILS:TT.PMT,TT.CCtype,TT.TND}

TT.PMT—shows nothing

Actually want to have payment summary something like this:
Cash 2 22.90
VISA 1 30.12

This is because PMT is not the name of the Ticket Tag. It is the same difficulty as with the previous post for clearing these Tags, because the name of the Ticket Tags in this case are dynamic, including the Time and [Payment Type]. These are the actual names of the “PMT” Ticket Tags:

PMT 14.30.253 [Credit Card]
PMT 14.30.802 [Cash]

lol. I was wondering the reason of having ticket tag descriptions item in my to do list.

1 Like

That would probably help @emre.

The reason this setup is written this way is because theoretically someone could pay with multiple types, multiple times before the Ticket is fully paid. Ideally, we would want to be able to store all tenders separately, something like this:

TOT: Amount
TND: Amount
CHG [currency] Amount
PMT CC [type] [digits] (date/time) Amount
PMT CC [type] [digits] (date/time) Amount
PMT CC [type] [digits] (date/time) Amount
PMT Cash [currency] (date/time) Amount
PMT Cash [currency] (date/time) Amount
PMT Cash [currency] (date/time) Amount

I know it might look ridiculous to use so many Payment Types on a single Ticket, but it does happen, even if only rarely. So it would equate to this (or similar):

TOT: 2300.00
TND: 2400.00
CHG [LMP] 100.00
PMT CC [MAST] [1111] (2014-12-01_09.58.22) 500.00
PMT CC [VISA] [1234] (2014-12-01_09.59.05) 300.00
PMT CC [VISA] [5678] (2014-12-01_09.59.30) 800.00
PMT Cash [LMP] (2014-12-01_11.00.11) 230.00
PMT Cash [LMP] (2014-12-01_11.00.47) 170.00
PMT Cash [USD] (2014-12-01_11.01.15) 400.00

so is there any tag in report to check for tag name ?
like ticket tag name contains Credit Card!

I am not well-versed in Custom Report Tags, so I can’t really comment - you would need the ability to check the Tag name to see if it “contains” certain characters, similar to the LIKE %name% function in SQL.

Using SQL, you could theoretically parse out the Tags using LIKE and SUBSTRING() functions, but I haven’t looked into it - plus the Tags are stored in JSON format which makes things much more difficult… this is where Custom Report Tags excels over SQL, because @emre has designed it in such a way that it makes reading Tags fairly simple in comparison.

Hello @QMcKay

I have followed this setup. I have one problem but it can be solved as well.

The problem is

When I print the receipt, I do not want to print the tendered and change for mom cash payments and CC info for Cash Payments

One way to solve is to use the separate print job but is there anyway to define that in the Print Template ?

Please let me know

Printer Template formatting allows for printing a line only when a value is present. Simply enclose them in square brackets in the Template, as such:

[<L00>CC Info: {TICKET TAG:CCtype} ({TICKET TAG:CCdigits})]

So for example, if you paid with Cash, the Ticket Tags for CCtype and CCdigits would have no value, and when you use the square brackets, the entire line will not print.

The same would apply for Change due - if the value is 0, nothing will print when enclosed in square brackets:

[<J00>CHANGE:|[=F(TN('{CHANGE TOTAL}'))]]

You won’t be able to avoid printing the Tendered Amount however, since it will always have a value.

Is there a way to add text when there is no value? For example if change was zero and tag was in sqaure brackets so it didnt print could the words NO CHANGE DUE be added instead?

is there a way to group the type of payment in custom report

like it show total of visa , master

The thing is custom reports are custom. We do not know what your report syntax looks like unless you show us. You can do anything with custom reports. Show us what syntax you used and I can show you options for results you wanted. I can also explain why your report turned out like that when you wanted it to look different.

its ok i have done:

[Payment Detail:2, 2]
Type|Total
CashTotal|{REPORT PAYMENT TOTAL:(PT=Cash)}

Credit Card
VISA|{REPORT PAYMENT TOTAL:(PT=Credit Card)and (TT.CCtype=VISA)}
MASTER CARD|{REPORT PAYMENT TOTAL:(PT=Credit Card)and (TT.CCtype=MASTER)}
NETS|{REPORT PAYMENT TOTAL:(PT=Credit Card)and (TT.CCtype=NETS)}
AMEX|{REPORT PAYMENT TOTAL:(PT=Credit Card)and (TT.CCtype=AMEX)}
DINERS|{REPORT PAYMENT TOTAL:(PT=Credit Card)and (TT.CCtype=DINERS)}
OTHER|{REPORT PAYMENT TOTAL:(PT=Credit Card)and (TT.CCtype=OTHER)}
Total|{REPORT PAYMENT TOTAL:(PT=Credit Card)}
Grand Total|{REPORT PAYMENT TOTAL:(PT=Cash) OR (PT=Credit Card)}

4 Likes