Quick question.
Have constraints of {:NUMBERPAD} == "" and {:NUMBERPAD} != "" {:NUMBERPAD} == "" seems to work in that that message only shows up when no value entered in numberpad
HOWEVER {:NUMBERPAD} != "" doesnt work as expected, this message shows up in number pad is blank or has a value?
You can’t make date comparisons on constraints for V4.
For V5 you can write something like that.
new Date(FD(ADM('{:NUMBERPAD}',216),'MM/dd/yyyy')) > new Date(FD('{DATE}','MM/dd/yyy'))
You can also setup two rules for Think21 command and compare dates by setting up rule constraints with Before or After operators. One rule works if age is valid, other one works if not.
That’s a fair shout, good idea.
Am working in V5 and would prefer to keep the actions in one rule if possible so will have a play with the first suggestion.
Thanks for the suggestions, will post results in a V5 tutorial when I get it working
Whats the new Date doing?
Cant work it out, I get an output of new Date( [18th Birthday Date] ) > new Date(27/06/15)
The FD(ADM('{:NUMBERPAD}',216),'dd/MM/yy') works as expected but new Date doesn’t seem to do anything.
Have resorted to multiple rules and used the rule constraints
i use a simpler version for age checking before processing anything, if customer looks underage ask for ID first, check the age and press the Think 21 button. This display a screen telling you the customer should be born on or after a certain date which you verify by looking at their ID as shown below
have you seen the setup i have with age restricted sales? if age restricted item added youre prompted to confirm age, enter DOB and ticket is either created if old enough and add DOB as a ticket tag or if not old enough the ticket is aborted and a new transaction can be started, you can have a lemonade haha
i also used the new order grouping so all age restricted (alcohol) is grouped together
Yea thats what mine does but the first question prompts cashier to check age (to remind them) they can press no and carry on as normal if the customer is clearly old enough and it will only ask once, when the first restricted item is added