How To Perform Validation On Quantity Data Not Being Zero

Problem:

Is it possible to perform validation on quantity data not being zero?

Solution:

Use the function getnozero

qnty = lin.getnozero({'BOTSID':'HLL','QUANTITY':None})
if qnty:
    lou.put({'BOTSID':'IT1'},{'BOTSID':'IT3','IT302':'EA','IT303':'CC','IT301':qnty})
else:
    lou.put({'BOTSID':'IT1'},{'BOTSID':'IT3','IT302':'EA','IT303':'CU','IT301':'0'})

Leave a Reply

Your email address will not be published. Required fields are marked *

*