I want to use an RFID card to retrieve stored customer data and use it to initiate a discount at time of payment. One of the fields (CardValid) in the Entity custom data holds value Yes, No or Null.
From the payment screen the card is scanned and the data retrieved via a Change Ticket Entity action
There are then a list of actions which should be triggered by the value of the CardValid field using constraints on the actions, e.g.
This all seems to work OK except that it uses the values from the previous card scanned rather than the current one, i.e. if two cards are scanned with CardValid = Yes and No respectively, the actions will operate on the Yes value rather than the No value. If the card is then scanned a second time, the expected (correct) results are obtained.
If i add a message to show Entity Name and Entity Data, the message indicates all is well and shows me values of the current card.
Does anybody have any suggestions as to what is happening here and how to correct it?
Where is your load entity action? Oh nm your not doing that. Ok so it’s reading the assigned entity which is what you told it to do. Try loading entity from card first.
I tried that using Load Entity in place of Change Ticket Entity
Also tried to load it after the Change Ticket Entity
But still have the same problem. I read somewhere on the forum that we cannot use Load Entity on an open ticket. I assume the ticket is open if we are in the process of paying it (but maybe not?)
The discount needs to be applied at the time of payment because that’s how the staff have been doing it for several years and trying to retrain them is just too hard (the RFID card is a new thing). I’m a bit confused because if I read the values into a message
The first post shows the Change ticket Entity. This is the first action when the discount button is pressed. The card is scanned to get the [:CardNumber] variable via a numberpad popup
Remember we cant see your system… we dont know what you have setup. YOu have not shown the rule just a cutoff showing the actions inside the rule. I need to understand every step your doing to help you.
I can see it on the ticket after the payment screen is refreshed. This was at the end of all the actions so I thought that may be the problem so I added a Refresh Payment screen Action after the Change Ticket Entity and before the message. It shows the Name is updated
While Im waiting on you to show us the screenshots I have a question. Does your card actually have a Null value? Or is it just empty if Yes or No is not in it?