amaury254's picture
Dec 12, 2013
5061 views
Reputation: 23

HOW TO SELECT ENTITES

Hello,

I use an action name "load hanger to ticket"; "action type : change ticket entity" ; "Entity Type Name = hangers" ; "Entity Name : ??????don't know" ; "EntitySearchValue : ??????don't know"  

I use this rules : "event : order added to ticket" ; "constraint : menu item group code = dressing" ; "action : load hanger to ticket"

I use Entites type : "name : hangers" ; "entity name: hanger" ; "primary field name: hanger number" ; "primary field format: CCC"

Entites hanger are called : 1 , 2 , 3 , 4 ....

So the question is : When I add an item called "dressing" to the ticket, how can i load the hanger entites which is called "1" ? AND when I add a new item  called "dressing" (to the same ticket or another ticket) how can i load the hanger entites which is called "2" and so forth.....

Thanks to your help

6 answers

amaury254's picture
amaury254
Dec 12, 2013
Reputation: 23

I guess I should fill in "entity name" or "entitysearchvalue" fields  with a special expression to make this but I don't know it

emreeren's picture
emreeren
Dec 13, 2013
Reputation: 595

I think you need four actions and four rules to match these actions to product groups. For example: Load Hanger 1 to Ticket, Load Hanger 2 to Ticket, ... and execute related action when new items added.

Another way is using Variables. Assign "Entity Search Value" value to a variable. For example [:Hanger Name]

When you add this action to a rule you'll see Hanger Name parameter on action parameters. So how you can pass Hanger Name value? Order Added to Event returns MenuItemTag value. This value is what we type as product tag. So you can select MenuItemTag value from drop down and update Tag values of prouducts as related hanger names.

amaury254's picture
amaury254
Dec 13, 2013
Reputation: 23

Thanks for your help :

My project is to print a special ticket with a number to put on a hanger when a customer ask one (like to put his jacket on a hanger).

I've followed all tutorials and all works fine but I don't understand how to make this, to load hanger 1 to the first jacket, and then load hanger 2 when I take a second jacket .... because there is no really  link whith the sales ticket.

Exemple : Sales ticket 1 : Coffee , Sales ticket 2 : Coke, Sales ticket 3 : Ice tea + hanger n°1 (n°1 because it's the first hanger in the work period), Sales ticket 4 : Water , Sales ticket 5 : Orange Juice + hanger n°2 .....

So I'll print a special ticket to put on the hanger only when a customer need a hanger

Sorry but It's difficult to me to explain it in english.

Please, Could you give me some help about this because i'm really lost with these settings.

 

emreeren's picture
emreeren
Dec 13, 2013
Reputation: 595

Can't you print only the ticket number on the hanger ticket? Do you have a lot of hangers?

amaury254's picture
amaury254
Dec 13, 2013
Reputation: 23

Yes I have to keep track of sales because of the laws so I have to print out a ticket for each customer because the cloakroom is a  paid service.

So when a customer need a hanger, this paid service appears on the sales invoice with the other items and I would print a second tichet with the hanger number that i'll hang on the hanger. And on the first ticket (to the customer), there would be detail of the order and the hanger number.

In fact I could use the ticketid number to put on the ticket of the hanger but it's to simplify the management of the cloakroom because not all customers don't take a hanger so the hanger number should be n°5, then n°16, then n°34.....

I would like to have n°1,n°2,n°3 instead n°5,n°16,n°34..... it's easier to search the jacket and manage the cloakroom.

But maybe it's not possible.

Thanks for your help

 

amaury254's picture
amaury254
Dec 13, 2013
Reputation: 23

I forgot this :  sometimes a customer takes two or three hanger to himself and his friends . So it should be a mistake if I use the same ticketid number three times to put on the three hangers. Best solution should be have three different hanger numbers that appears on the sale invoice.

Exemple :

___________________________

Ticket ID  n°34

Hanger n°6     1€

Hanger n°7      1€

Hanger n°8       1€

3 Free Entry      0 €

Total Amout      3€

________________________________

Do you think it's actually possible?

Thanks for your help

We have already answers to
1030 questions
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634