tmas73 Posted November 19, 2008 Posted November 19, 2008 I have a "Stock Checkbox" that I can check manually if the item is in stock, then I have a calculation that calculates a products weight and price. So when the price is below $0 the checkbox should be automatically un check (so we know to reorder the product). But it still should be possible to uncheck or check the same checkbox manually. How is this possible? Thanks T
bcooney Posted November 19, 2008 Posted November 19, 2008 I don't follow. Why would a product's weight and price have any thing to do with whether or not it is in stock? And..don't you calculate Qty in Stock using Receipts/Sold/Adjustments, etc?
tmas73 Posted November 19, 2008 Author Posted November 19, 2008 Hi, yes you have stock numbers, but in this case its liquid used in recipes, so when the liquid runs out (by volume or weight) the checkbox should be unchecked. One bottle od liquid for example 500g is used in 10 recipes and once a calculation gets below "0" checkbox reminder pops off and also will change the fields color.
bcooney Posted November 20, 2008 Posted November 20, 2008 Why would you manually check InStock if you have a calculated InStock? Is your calc not accurate and you're getting false InStock values? Can you add Adjustments to the qty in stock, bringing it down to zero if necessary?
tmas73 Posted November 20, 2008 Author Posted November 20, 2008 Hi, just want the option for lazy users that dont fill anything out just keep track manually!
bcooney Posted November 20, 2008 Posted November 20, 2008 I'd go with two fields, one calculated InStock and one manual checkbox.
tmas73 Posted November 21, 2008 Author Posted November 21, 2008 Ok, but what would the formula be? if the field displays a - (negative)number the checkbox should uncheck. I tried: Case ( oil_quantities:il_weight_left > 0 ;oil_materials:il_stock = 1; oil_quantities:il_weight_left < 0; oil_materials:il_stock = 0) But it wont work Thanks
tmas73 Posted November 24, 2008 Author Posted November 24, 2008 Thanks problem solved. The Stock had to be a calculation field and the the calculation was wrong!
Recommended Posts
This topic is 5896 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now