"Pickup Time" as Tag?

Hi!
Im new here in this, and im sorry if i ask stupid question, but trying to make this works with my sushi take-away in sweden.

I got problems when i followed as described to make a "Pickup Time buttons"from this topic below. Tried to do everything same as the guide, but failed.
When i get the question to pick a Time (10-15-20 minuts…) nothing happens when i choose a time, the popup page just closes down…

Can you please help me? This funtion is really useful for me, so i would like to make it works :slight_smile:

Thanks for your help. Regards
Tung

Continuing the discussion from "Pickup Time" Ticket Tag:

Firstly double check all the actions and rules you created. Most commonly is that there is a spelling error or wrong case used.

If you still can’t get it working after checking, post screenshots of the actions and rules you created so others can help you.

That Tutorial could use some updating and more clarification, as well as some parameters in Text so they could be copy/pasted.

The Ask question Action does not define Command Values for all the buttons, specifically:

Enter my own Time
Cancel

The Ask Question Action should also be parameterized instead of hard-coded, so it is easier to change.

There should also be more constraints in the Rules to handle different button presses, for example:

Command Value Not Equals Enter my own Time
Command Value Not Equals Cancel

I don’t have time right now to re-write it - maybe someone else does. It is a very simple setup.

im pretty new to this, so its rly hard for me to figure out how to do with this more than just follow the tuturial :frowning:
I would be very apreciated if you or anyone here could help me to find out what went wrong :frowning: i have tripplechecked the codes, and all the spellings :frowning: i think theres somethings missing in here :stuck_out_tongue:

Here is a more robust setup for this …

Some of the settings are from V5, but they are not applicable, and this will work just fine in V4.

#Automation Command (button)

##PDT Pick Up or Delivery Time [no Category] (Automation Command)##

Name: PDT Pick Up or Delivery Time
Category:
Button Header: Pickup or\rDelivery\rTime
Color: #FFF79646
Font Size: 26
Confirmation: None
Values (0): (none)
Navigation Settings
Symbol:
Image:
Auto Refresh: 0
Tile Cache: 0
Navigation Module:
Nav Module Parameter:
Template: ```

</details>


<details>
<summary><b><u>Mappings</u></b></summary><table><tr><td><b>Terminal</b> </td><td><b>User Role</b> </td><td><b>Department</b> </td><td><b>Ticket Type</b> </td><td><b>Enabled States</b> </td><td><b>Visible States</b> </td><td><b>Visibility</b> </td></tr><tr><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td><td><code>Ticket</code></td></tr></table></details>


----------

#Action - Ask Question

<img src="/uploads/default/original/3X/c/f/cf52b94d6d6515cf44dd6cda8b02fca035e25858.png" width="690" height="412">

>##PDT Ask Question `[Ask Question]` (Action)##
<table><tr><td><b>Action Name:</b> </td><td><code>PDT Ask Question</code></td></tr><tr><td><b>Action Type:</b> </td><td><code>Ask Question</code></td></tr></table>
###Parameters:###
<table><tr><td><b>Question:</b> </td><td><code>[:question]</code></td></tr><tr><td><b>Buttons:</b> </td><td><code>[:buttons]</code></td></tr><tr><td><b>Automation Command Name:</b> </td><td><code>[:AMCname]</code></td></tr><tr><td><b>Background Color:</b> </td><td><code>[:BGcolor]</code></td></tr><tr><td><b>Transparent Color:</b> </td><td><code>[:TPcolor]</code></td></tr></table>


----------

#Action - Display Ticket (Refresh Ticket)

<img src="/uploads/default/original/3X/e/f/efd9be4c0a9425378dea4ce2630f2239ad85b45b.png" width="690" height="303">

>##PDT Refresh Ticket `[Display Ticket]` (Action)##
<table><tr><td><b>Action Name:</b> </td><td><code>PDT Refresh Ticket</code></td></tr><tr><td><b>Action Type:</b> </td><td><code>Display Ticket</code></td></tr></table>
###Parameters:###
<table><tr><td><b>Ticket Id:</b> </td><td><code>[:ticketid]</code></td></tr></table>


----------

#Action - Update Program Setting (store Delivery or Pickup)

<img src="/uploads/default/original/3X/f/5/f58620302b9eb4b4238ef19536f9aeacbc974d57.png" width="690" height="384">

>##PDT Store Pickup or Delivery `[Update Program Setting]` (Action)##
<table><tr><td><b>Action Name:</b> </td><td><code>PDT Store Pickup or Delivery</code></td></tr><tr><td><b>Action Type:</b> </td><td><code>Update Program Setting</code></td></tr></table>
###Parameters:###
<table><tr><td><b>Setting Name:</b> </td><td><code>[:settingName]</code></td></tr><tr><td><b>Setting Value:</b> </td><td><code>[:settingValue]</code></td></tr><tr><td><b>Update Type:</b> </td><td><code>Update</code></td></tr><tr><td><b>Is Local:</b> </td><td><code>True</code></td></tr></table>


----------

#Action - Update Ticket Tag 

<img src="/uploads/default/original/3X/e/f/efa1a695571ae03f6fb58e75149503164ed7f513.png" width="690" height="330">

>##PDT Update Ticket Tag `[Update Ticket Tag]` (Action)##
<table><tr><td><b>Action Name:</b> </td><td><code>PDT Update Ticket Tag</code></td></tr><tr><td><b>Action Type:</b> </td><td><code>Update Ticket Tag</code></td></tr></table>
###Parameters:###
<table><tr><td><b>Tag Name:</b> </td><td><code>[:TagName]</code></td></tr><tr><td><b>Tag Value:</b> </td><td><code>[:TagValue]</code></td></tr></table>


----------

#Rule - Ask Delivery or Pickup

<img src="/uploads/default/original/3X/a/8/a8e18256babddf382b515e156fa1a806c1172627.png" width="436" height="499">

>##PDT Ask Delivery or Pickup `[Automation Command Executed]` (Rule)##
<table><tr><td><b>Rule Name:</b> </td><td><code>PDT Ask Delivery or Pickup</code></td></tr><tr><td><b>Event Name:</b> </td><td><code>Automation Command Executed</code></td></tr><tr><td><b>Rule Tags:</b> </td><td><code>au</code></td></tr></table>
<i>Custom Constraint List (1):</i>
<table><tr><td><b>Execute Rule if:</b> </td><td><code>Matches</code></td></tr></table>
<table><tr><td><code>Automation Command Name</code></td><td><b><i>Equals</i></b></td><td><code>PDT Pick Up or Delivery Time</code></td></tr></table>

##Actions (1):##

<details>
<summary><b><u>PDT Ask Question</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>question:</b> </td><td><code>Delivery or Pickup?</code></td></tr><tr><td><b>buttons:</b> </td><td><code>Delivery=Delivery,Pickup=Pickup,Clear=Clear,Cancel=Cancel</code></td></tr><tr><td><b>AMCname:</b> </td><td><code>PDT Ask Time</code></td></tr><tr><td><b>BGcolor:</b> </td><td><code> </code></td></tr><tr><td><b>TPcolor:</b> </td><td><code> </code></td></tr></table></details>

##Mappings##



<details>
<summary><b><u>Mappings</u></b></summary><table><tr><td><b>Terminal</b> </td><td><b>User Role</b> </td><td><b>Department</b> </td><td><b>Ticket Type</b> </td></tr><tr><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td></tr></table></details>


----------

#Rule - Ask Time

<img src="/uploads/default/original/3X/3/8/38edca275e86d6dbf1bb6b8a0df2985115083e5b.png" width="351" height="500">

>##PDT Ask Time `[Automation Command Executed]` (Rule)##
<table><tr><td><b>Rule Name:</b> </td><td><code>PDT Ask Time</code></td></tr><tr><td><b>Event Name:</b> </td><td><code>Automation Command Executed</code></td></tr><tr><td><b>Rule Tags:</b> </td><td><code></code></td></tr></table>
<i>Custom Constraint List (3):</i>
<table><tr><td><b>Execute Rule if:</b> </td><td><code>Matches  All</code></td></tr></table>
<table><tr><td><code>Automation Command Name</code></td><td><b><i>Equals</i></b></td><td><code>PDT Ask Time</code></td></tr><tr><td><code>Command Value</code></td><td><b><i>Not Equals</i></b></td><td><code>Cancel</code></td></tr><tr><td><code>Command Value</code></td><td><b><i>Not Equals</i></b></td><td><code>Clear</code></td></tr></table>

##Actions (2):##

<details>
<summary><b><u>PDT Store Pickup or Delivery</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>settingName:</b> </td><td><code>PickupDelivery</code></td></tr><tr><td><b>settingValue:</b> </td><td><code>[:CommandValue]</code></td></tr></table></details>

<details>
<summary><b><u>PDT Ask Question</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>question:</b> </td><td><code>Choose [:CommandValue] Time</code></td></tr><tr><td><b>buttons:</b> </td><td><code>10 min=10,15 min=15,20 min=20,30 min=30,45 min=45,1 Hr=60,Custom=Custom,Cancel=Cancel</code></td></tr><tr><td><b>AMCname:</b> </td><td><code>PDT Tag Ticket</code></td></tr><tr><td><b>BGcolor:</b> </td><td><code> </code></td></tr><tr><td><b>TPcolor:</b> </td><td><code> </code></td></tr></table></details>

##Mappings##



<details>
<summary><b><u>Mappings</u></b></summary><table><tr><td><b>Terminal</b> </td><td><b>User Role</b> </td><td><b>Department</b> </td><td><b>Ticket Type</b> </td></tr><tr><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td></tr></table></details>


----------

#Rule - Ask Time (clear) - (Remove Ticket Tags)

<img src="/uploads/default/original/3X/a/1/a1735befd012d0c76857e1094e680dc1116f1795.png" width="355" height="500">

>##PDT Ask Time (Clear) `[Automation Command Executed]` (Rule)##
<table><tr><td><b>Rule Name:</b> </td><td><code>PDT Ask Time (Clear)</code></td></tr><tr><td><b>Event Name:</b> </td><td><code>Automation Command Executed</code></td></tr><tr><td><b>Rule Tags:</b> </td><td><code></code></td></tr></table>
<i>Custom Constraint List (2):</i>
<table><tr><td><b>Execute Rule if:</b> </td><td><code>Matches</code></td></tr></table>
<table><tr><td><code>Automation Command Name</code></td><td><b><i>Equals</i></b></td><td><code>PDT Ask Time</code></td></tr><tr><td><code>Command Value</code></td><td><b><i>Equals</i></b></td><td><code>Clear</code></td></tr></table>

##Actions (3):##

<details>
<summary><b><u>PDT Update Ticket Tag</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>TagName:</b> </td><td><code>Delivery Time</code></td></tr><tr><td><b>TagValue:</b> </td><td><code> </code></td></tr></table></details>

<details>
<summary><b><u>PDT Update Ticket Tag</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>TagName:</b> </td><td><code>Pickup Time</code></td></tr><tr><td><b>TagValue:</b> </td><td><code> </code></td></tr></table></details>

<details>
<summary><b><u>PDT Refresh Ticket</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>ticketid:</b> </td><td><code>0</code></td></tr></table></details>

##Mappings##



<details>
<summary><b><u>Mappings</u></b></summary><table><tr><td><b>Terminal</b> </td><td><b>User Role</b> </td><td><b>Department</b> </td><td><b>Ticket Type</b> </td></tr><tr><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td></tr></table></details>


----------


#Rule - Tag Ticket

<img src="/uploads/default/original/3X/8/e/8ec0a47127a0624fd58c01aebf8dc282c1a0504f.png" width="280" height="500">

>##PDT Tag Ticket `[Automation Command Executed]` (Rule)##
<table><tr><td><b>Rule Name:</b> </td><td><code>PDT Tag Ticket</code></td></tr><tr><td><b>Event Name:</b> </td><td><code>Automation Command Executed</code></td></tr><tr><td><b>Rule Tags:</b> </td><td><code></code></td></tr></table>
<i>Custom Constraint List (2):</i>
<table><tr><td><b>Execute Rule if:</b> </td><td><code>Matches</code></td></tr></table>
<table><tr><td><code>Automation Command Name</code></td><td><b><i>Equals</i></b></td><td><code>PDT Tag Ticket</code></td></tr><tr><td><code>Command Value</code></td><td><b><i>Not Equals</i></b></td><td><code>Cancel</code></td></tr></table>

##Actions (5):##

<details>
<summary><b><u>PDT Update Ticket Tag</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>TagName:</b> </td><td><code>Pickup Time</code></td></tr><tr><td><b>TagValue:</b> </td><td><code> </code></td></tr></table></details>

<details>
<summary><b><u>PDT Update Ticket Tag</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>TagName:</b> </td><td><code>Delivery Time</code></td></tr><tr><td><b>TagValue:</b> </td><td><code> </code></td></tr></table></details>

<details>
<summary><b><u>PDT Update Ticket Tag</u></b></summary>

<b>Constraint:</b> <code>'[:CommandValue]' != 'Custom'</code>
<table><tr><td><b>TagName:</b> </td><td><code>{SETTING:PickupDelivery} Time</code></td></tr><tr><td><b>TagValue:</b> </td><td><code>[=FD(ADS('{TIME}', ([:CommandValue]*60)),'HH:mm')]</code></td></tr></table></details>

<details>
<summary><b><u>PDT Update Ticket Tag</u></b></summary>

<b>Constraint:</b> <code>'[:CommandValue]' == 'Custom'</code>
<table><tr><td><b>TagName:</b> </td><td><code>{SETTING:PickupDelivery} Time</code></td></tr><tr><td><b>TagValue:</b> </td><td><code>[?Enter Time;;;ONC]</code></td></tr></table></details>

<details>
<summary><b><u>PDT Refresh Ticket</u></b></summary>

<b>Constraint:</b> <i>(none)</i>
<table><tr><td><b>ticketid:</b> </td><td><code>0</code></td></tr></table></details>

##Mappings##



<details>
<summary><b><u>Mappings</u></b></summary><table><tr><td><b>Terminal</b> </td><td><b>User Role</b> </td><td><b>Department</b> </td><td><b>Ticket Type</b> </td></tr><tr><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td><td><code>*</code></td></tr></table></details>


----------
1 Like

WOW, thanks alot! its working now, and got no problem at all with your code.
Had a little bit problem at first because i could not add 4 “Actions” of “PDT Update Ticket Tag”, but i figure it out that i had to clone the ticket tag action in order to use many (4)ticket tags at a same rule.

No need to clone, you just need the one action. Then when adding it to the rule if you right click the box with all the actions in it and select display all it will re-add the actions you already used in the rule so you can add them again

That way you dont have loads of the same action listed, just the one :slight_smile:

ohh, haha i see now. Thanks alot! u guys are awesome! :smiley:

I also wonder if theres a simple way for me to change the “Pickup or DeliveryTime” button to go direct to “Times buttons”?
Because right now i dont have delivery yet in my store, and its a little bit time saving if i dont need to choose between “Delivery” or Pickup.

Once again, thanks alot! I really helped me alot! :smiley:
Regards Tung

@QMcKay I re setup this flow I cannot get custom when I press custom button going to pos screen? the screen shot for ask time rule not showing full am I missing something? Also what is the format for AM PM Time thanks.

Dear @QMcKay I´d like to know if its possible to print that time, I have followed the entire tutorial and it works perfect, actually amazing, but id like to print thie pick up or delivery time on kitchens receipt, so the cooker can see how much time it is to go…

Id have tried to make a rule that allows the entity to change color or status when this time is reached, i dont know if it is possible through a trigger… Could you help me with? I think this will be usefull for all of us…

Thanks a lot for all your help…

You can use these in a Printer Template:

{TICKET TAG:Pickup Time}
{TICKET TAG:Delivery Time}

V4 is not well-suited for this type of thing. Maybe it can be done, maybe not. Sorry, I will not invest time into researching whether or not this is possible in V4. Using V5 you have many more features and tools at your disposal for this type of thing, so I am sure something could be worked out to suit your needs.