Re: [web2py] Why is my if/else statement not working

2019-09-15 Thread mostwanted
Hey Dave, the $(document).ready(function(){}) statement is repeated as many times as as allowed by the for loop, I checked with the Firefox Web Developer-Debugger plugin, its repeated as per the number of elements in the for loop,its just not respecting the the rules of the condition i don't

Re: [web2py] Why is my if/else statement not working

2019-09-15 Thread Dave S
On Fri, Sep 13, 2019 at 2:31 PM mostwanted > > wrote: > >> This conditional statement should be simple & execute without any issues, >> I have created a point of Sale system, in a view it shows all the items & >> their available quantities, what i want is that when a product's quantity >>

Re: [web2py] Why is my if/else statement not working

2019-09-13 Thread Jirawat Kusolpreedee
every python code must be enclosed in {{}} also you need a {{pass}} at the end of if-else statement On Fri, Sep 13, 2019 at 2:31 PM mostwanted wrote: > This conditional statement should be simple & execute without any issues, > I have created a point of Sale system, in a view it shows all the

[web2py] Why is my if/else statement not working

2019-09-13 Thread mostwanted
This conditional statement should be simple & execute without any issues, I have created a point of Sale system, in a view it shows all the items & their available quantities, what i want is that when a product's quantity goes below 10 the quantity figure should turn red & a please refill