Discount per Custumer

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

Create a NEW Action. We will get rid of the old one entirely.

##VIP Customer Ticket Discount [Update Ticket Calculation] (Action)##

Action Name: VIP Customer Ticket Discount
Action Type: Update Ticket Calculation
###Parameters:###
Calculation Type: Discount
Amount: [:amount]
Reset Ticket: [:resetTicket]
Remove Calculation: [:removeCalc]
Round Amount: [:roundAmount]

Create a new Rule. We will get rid of the old one completely.

We will also use the above Action TWICE in this Rule. Add the Action once… then to be able to choose the same Action more than once in a Rule, RIGHT-click on the left side of the Action Chooser and select Display All Values. Scroll to the bottom of the list and you will find your Action so you can add it again.

Your Rule should then look like this:

##VIP Remove or Apply Customer Ticket Discount [Ticket Entity Changed] (Rule)##

Rule Name: VIP Remove or Apply Customer Ticket Discount
Event Name: Ticket Entity Changed
Rule Tags:
Custom Constraint List (1):
Execute Rule if: Matches
Entity Type NameEqualsCustomers

##Actions (2):##

VIP Customer Ticket Discount

Constraint: (none)

amount:
resetTicket:
removeCalc: True
roundAmount:
VIP Customer Ticket Discount

Constraint: [=TN(‘{ENTITY DATA:Customers:Discount}’)] > 0

amount: [=TN('{ENTITY DATA:Customers:Discount}')]
resetTicket:
removeCalc: False
roundAmount:

##Mappings##

Mappings
Terminal User Role Department Ticket Type
****

This is my Calculation …


For reference, here are some of my Customers …


This is how it works…


Now you can delete your old Rule, then delete your old Action.

1 Like

QMcKay,
Thanks a lot. that was exact what i was looking for. and help me for other things.
I Recomend to add this to the manual.

If you have an extra copy send it here :stuck_out_tongue: LOL just joking there is not an actual manual however it is now a part of the best support system known to man called the SambaPOS forum :stuck_out_tongue:

2 Likes