Hi everybody,
I made a script for a client who wanted to put all items under $1 at $1
This works:
tableOpen('prix')
UPDATE prix ;
SET PR_PRIX = 1;
where ;
PR_PRIX < 1
Now he would like to do 2 other things and I am completely stuck.
He would like that if an item is between 1 and 10$ he wants to round it up like this: 1.12$ to 1.20
and from 10$ he wants to round it like this: 10.40 to 11$.
Can you help me ?
thanks
Vince
I made a script for a client who wanted to put all items under $1 at $1
This works:
tableOpen('prix')
UPDATE prix ;
SET PR_PRIX = 1;
where ;
PR_PRIX < 1
Now he would like to do 2 other things and I am completely stuck.
He would like that if an item is between 1 and 10$ he wants to round it up like this: 1.12$ to 1.20
and from 10$ he wants to round it like this: 10.40 to 11$.
Can you help me ?
thanks
Vince