W
wisgary
I have an Order-items many-to-many relationship, and my Order-Items
table has a "quantity" field which specifies how many of X item in each
order was ordered. Also, my Items table has an "inventoryQuantity" I
was wondering if there is any way to validate it so that the quantity
field can never be larger than the inventory quantity (otherwise I'd
get a negative inventoryQuantity there as soon as enough stock was
sold)
Also another little question, is it possible to stop forms from auto
saving and just make a save button so that you have the option of
canceling out of a form without saving?
table has a "quantity" field which specifies how many of X item in each
order was ordered. Also, my Items table has an "inventoryQuantity" I
was wondering if there is any way to validate it so that the quantity
field can never be larger than the inventory quantity (otherwise I'd
get a negative inventoryQuantity there as soon as enough stock was
sold)
Also another little question, is it possible to stop forms from auto
saving and just make a save button so that you have the option of
canceling out of a form without saving?