RickH
March 22, 2016, 8:56pm
1
i only want the rule to fire when the automation command is pressed AND there is a number (for price) entered in the keypad. Ive added {NUMBERPAD} is not null, but even when the number pad doesnt have a number entered the rule still fires, even stranger the action is to add a misc item and set the price to whatever is entered in the numbepad which it does, however when nothing is entered in the number pad it add a price of 1.00
LOL
I thought the numberpad value was only entered when returned rather than if its sat in the field…
Could you not dual [?prompt] it? they get merged into one pop up which might work well.
RickH
March 22, 2016, 9:03pm
3
if i type any amount in the numberpad field and press my misc item button it works perfect ill show screen shots below
It just takes empty numberpad as 1? very strange…
RickH
March 22, 2016, 9:05pm
5
10.00 entered in numberpad
Press the misc item button and enter description in prompt, i enter test
Order with name test is added and price 10.00
so i only want the button to work when there is a value in the number pad field, still dont know where the 1 comes from that isnt set anywhere lol
As a temp solution could you set numberpad does not equal 1…
ILL TELL YOU WHAT IT IS!!!
We can use numberpad as multiplier right???
So makes sence it defaults to 1 as x1 qty
RickH
March 22, 2016, 9:07pm
8
ahhhh
just tried does not equal 1 and that didnt work
HMMM, is {NUMBERPAD} correct? rather than [:Numberpad] on the rule constraint?
RickH
March 22, 2016, 9:10pm
10
yep thats got it!! i knew itd be some variation of the tag i never get it right first time lol, thanks
So was it using is not 1 or just is not null?
RickH
March 22, 2016, 9:12pm
12
is not null works fine, so dont know what the 1 is all about lol
Think I got it here;
Guessing the constraint can see its null but the call for the value in actual use causes it to trigger as 1 as if it was 1x qty on order added… maybe…
QMcKay
March 22, 2016, 9:26pm
15
{:NUMBERPAD} would probably work as well.
RickH
March 22, 2016, 9:27pm
16
im sure i tried that and it didnt work, although i may not have had the NULL bit set right when i tried that
QMcKay
March 23, 2016, 4:32am
17
Both/either should work.
You could also use TN() on the LEFT side to ensure you get a value returned and compare it against zero (0) …