Validate if there are open tickets the cashier cant end WP message

Is there a way to automatize a message for open tickets like it was an alert for the cashier

Message:

You Cant close WP there are open tickets Alert.

Your help will be much appreciated

You could use this Report Tag:

{REPORT TICKET COUNT:(TS.Status=Unpaid)}

I use it like this, in a Ternary Expression:

[=TN('{REPORT TICKET COUNT:(TS.Status=Unpaid)}')>0 ? 'Cannot Close Workperiod with ' + TN('{REPORT TICKET COUNT:(TS.Status=Unpaid)}') + ' Open Tickets<linebreak/><linebreak/>Click here to see Open Tickets' : 'Click here to ' + ('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'Close' : 'Open') + ' the WorkPeriod']

Looks something like this:

image

2 Likes

thank you @QMcKay at the end im using a validation with open tickets so they know that they have to settle the open tabs