I just polished a little this code and added the {BALANCE} tag. This allows us to list ALL tickets and see wich ones have been settled.
<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
{CALL:tlister.min('{TICKET STATE MINUTES:Status}','{BALANCE}')}
[ORDERS]
<J>{QUANTITY} {NAME} | {TOTAL AMOUNT}<br/>
function min(minutes,balance)
{
var test = minutes;
var saldo = balance;
var resultado = '';
if (saldo != '')
if (test>10)
resultado = '<R><block 176,0,0,0><color Red>' + test + ' min.</color></block>';
else
resultado = '<L><block 176,0,0,0>' + test + ' min.</block>';
else
resultado = '<R><block 176,0,0,0><color Blue>PAGADO</color></block>';
return (resultado);
}
I just did this because I need to do a quick look at some tickets, even thoe they have been settled…
Thanks!!!
G.
PD now I need some help here… I would like that when I clikc a Ticket, it opens it… can this be done?
Thanks!!!
G.
PD2:
I think I found it:
Thanks!!!
G.
sorry…