Discount per Custumer

Didnt know you could map those :grinning:

1 Like

Hello, thanks for the fast replay,
I did the Mapping over a custom screen and works perfect,

But the discount for each client is not working, the thing here is the restaurant have many clients with difrent discount,
Client 1, 5%
Client 2, 12%
Client 4, 21.5%
This is the reason why we do not let waiters to change clients, they can change and give discount for people do not have an agreement.

Then to use the VIP system is not usable due need a lot of rules, one per client.

This is what I did:
I. I add a custom field on customer Entity

II. I add a calculation Type named “Discount”

III. I add an Action Type named “Update Discount” i try to add {ENTITY DATA:Custumers:Discount} in value, but did not work.

IV. I add Rule named “Update Discount”

What I am doing wrong??

Thanks.

Youve spelt Customers wrong, if youve kept the default name it should be Customers not Custumers

That was a finger error, i did well.
Did not work, if you see the pictures i did ok.
Where do i need to add the {ENTITY DATA:Customer:Discount}
on Rule or Action?

In the action you have it set to Remove Calculation as True… so it will remove any calculation.

Also have a look at my tutorial it does pretty much what you want, you nay need to change some automation but should help you

I did, if you see the pictures,

If you have it set as TRUE of course discount wont work… its removing the calculation. You remove something it means its not there anymore… you dont want to remove it you want to change it.

Try setting Remove Calculation as False. Then in the rule remove the action save it, reopen the rule and add the action back and set your parameter.

i want to remove the old calculation of other client,
i try removing calculation as False, and did not work.

If your wanting to change the rate… then removing calculation will not work… you simply need to change it to a new rate…

You did something wrong so we need to see more of your setup. Show us everything including the actual entity showing the rate.

where do i put the {ENTITY DATA:Customer:Discount} on the Action Value field or on the rule?

If you edited the action then it wont automatically update it in the rule. YOu have to remove it from the rule… save the rule then open the rule and add action back.

i already read that tutorial RickH, and works like te VIP Discount sistem, but to have a diferent discount for each client, it doesn’t.

Try what I just said above.

Why did you change where you put your rate? That wont work either… All I said was change it from True to False not to change the other variable.

Set your Amount back the way it was and set the action to False then remove the action from rule and add it back again.

Kendash,
Did not work, look pictures.


It probably did work but you cant see it yet. If you close the ticket and reopen the same ticket does it show new discount?

The Entity is the buit-in Customers, just add Discount on custom Field on it.


I also did:
{ENTITY DATA:Discount}

Kendash,

Didnot work, i get the maximum of replays for a day, thats why i am writing on this replay. any other idea?

Ok so show us the Entity with that field and the rate inside it. Your calculation is working but your Entity Data is not so your problem is a mistake in your entity.

Try just using {ENTITY DATA:Discount}

No one of the changes that you
Said work