I want to create an assets management tool for a manufacturing plant.
What I’d like the tool to do is, for example:
Use app within minutes to store information about my inventory, including the quantity (kg) of parts.
Create an app that allows users to use a certain quantity of elements in the inventory.
Summarize the amount of material used from the inventory.
I have started working on this idea by creating objects (class=inventory) with a numerical property of weight and then trying to query the class property values. So far I have been able to list them, but not to create sums of property values.
I appreciate any guidance on this matter and any problems I might stumble on with this kind of approach.
You can “capture” the value returned by add() before it is displayed by affecting the result to a temporary velocity variable using #set. By convention we use the $discard variable for this purpose.