Hi all, couldn’t think of a title to go with this so thought the above was appropriate for this one.
I want to create another page to my system where it displays items there are needed to be re-ordered and only those items.
So in my table I have the quantity in stock and then I have another value which is the required stock level.
And then when the page is loaded it does the math.
$reqty = $qmax - $quantity;
if ($reqty < 0) $reqty =0;
And this shows on my page what I should be reordering.
Question. How do I create a page only showing items that are needed to be be reordered ? as at the moment it show ALL items and there positive or Zero value ? It would be easy it the $reqty (reorder quantity) was saved back in the database but as this is done in page then I cannot figure this out.