New Ticket Lister formats

@emre I love this btw. I am going to tweak the heck out of this and play around with it but man thats great.

Love how it shows duration of order. I am working on the scripting for it to change colors if X duration has passed.

Is this possible now? I mean I think I have the script ready and I want to play with it.I will try in a few minutes but I assume insert the CALL into the template area of settings?

is that formatting just on custom entity screen, i take it it cant be used on default ticket list screen when using actions and rules to display ticket list?

Yes that should work.

That is ticket list screen. It is a Ticket Lister template. New options with v5 :stuck_out_tongue:

<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
<R><block>{TICKET STATE MINUTES:Status} min.</block>

[ORDERS]
<J>{QUANTITY} {NAME} | {PRICE}<br/>

Yes its custom. @RickH you have much to learn yet young padawan lol. You can use actions and rules to switch directly to any screen now. Look at Navigate Module action. To switch to Entity Screen use Entity as the Module Name and then use the name of your screen for Paremeter. So for example if you have a Custom Entity Screen called To Go Orders you would put Entity for Module Name and To Go Orders for Paremeter. You can then use any rule event for automation to switch directly to that screen.

No more using Change Entity tricks etc.

EDIT: Additionally if you want to switch to lets say your Suppliers Accounting screen you can put Accounts as module and Suppliers as your parameter and it will go directly to your Suppliers accounting screen. I know you requested this while back… now you have it.

2 Likes

Hmm I cant get CALL to work inside the template. I am trying just a very basic jscript to ensure its working.

<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
<R><block>{CALL:weather.minutes('ENTITY STATE MINUTES')} min.</block>

[ORDERS]
<J>{QUANTITY} {NAME} | {PRICE}<br/>

function minutes(minutes)

(

  var test = 'Test'+minutes;

  

  return test;

  }

Should return TestEntityStateMinutes but it returns nothing.

BTW before you ask yes I have it inside the weather handler I am just quickly trying to test it.

Just tried this with no luck as well:

<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
{CALL:weather.minutes('ENTITY STATE MINUTES')} 

[ORDERS]
<J>{QUANTITY} {NAME} | {PRICE}<br/>

function minutes(minutes)

(

  var test = '<R><block>Test'+minutes+' .min </block>';

  

  return test;

  }

Can you try replacing 3rd line bracket with curly bracket?

2 Likes

LOL omg I must have missed that let me try. Ok that worked I am pretty tired cant believe I missed that. At least I know it works so im gonna sleep before I implement the color changing.

1 Like

lol generally you find our syntax errors. You must be really tired…

1 Like

@emre I couldnt let it go. I got it working but it seems to ignore <block>
Its also eating memory like its no tomorow.

EDIT: Actually it may be ignoring <R>
EDIT: Ok memory issue is solved. Had to do with me trying to insert <block> into the jscript instead of template.

function min(minutes)

{
   
  var test = minutes;

  if (test>15){
   
  return tag.Color('red',test);

  }

return test;

  }

<J><block 30><color #AA00FF00>{TICKET NO} </color></block>
<L><size 12><block 10>
{ORDERS}
<L></block></size>
<R><block>{CALL:weather.min('{TICKET STATE MINUTES:Status}')} min.</block>

[ORDERS]
<J>{QUANTITY} {NAME} | {PRICE}<br/>
1 Like

Fresh morning and I tried just about everything and still can not get it to justify to right correctly. I can take block off and it will put the red numbers in middle but no right justification yet. @emre I guess I need help to sort this out. Is there a tag or tag structure I am missing?

I have tried this and cannot get it work.

Module Name: Accounts
Parameter: Customer Accounts

It still brings me to the “General” Account Screen.

Edit: wait please stand by. My Rule is not firing. Must be a default Automation.

Oh yeah he changed something. Before if you had custom template it would negate automatic automation. Now you have to check the Execute Command box. If your using the reserved name for command that is like Accounts.

I noticed that last night. So if your tile is named Accounts and you want it to run a different command you have to check the box now even if you put a template in.

1 Like

Yup, that was it. It was doing the Default Navigation Automation, so the Rule wasn’t firing.

I checked Execute Command, and now the Rule fires and takes me to the Account Screen that I want.

Good catch @kendash… thanks!

EDIT: I see that it hides the screen header buttons when does this way as well. Neat feature.

1 Like

@Jesse im struggling to setup the custom ticket lister screen. I have done all the automation with new navigation module and setup entity screen. automation works and custom entity screen is loaded, ive added ticket lister template in design mode but i cant get it to display my suspended sale (ive renamed my parked sales setup to suspended sales)

So i want it to display all suspended sales, when they suspended sale is created the ticket state changes to Suspended Sale, i just cant seem to get the settings right to actually display them in the ticket lister widget. then i can play with the formatting like you are :slight_smile:

Any chance you could quickly show me the correct way to setup the entity screen and ticket lister setting to display tickets with state Suspended Sale?

Pull up one of those tickets while its in suspended state and let us see a screenshot of it. Show us your Ticket Lister widget settings screen as well please.

Try making it Suspended Sale instead of Suspended Sales If you want to filter by Ticket Tag then you could put this inside Filter:

[t:Suspended Sales] is "Test"

However instead of using Suspended Sale for ticket state why not just make the state Suspended?

changed that and changed Unpaid to Submitted as i noticed order state was submitted so it now shows this

Which i can no play with formatting on, however it i click it instead of opening ticket it shows this screen, which i then have to click the order again to open it??

how to i make it just open the ticket when i click it, instead of opening another ticket lister screen?