Hello everyone,
I'm currently in the process of creating a model driven app.
I have two tables Items and Inventory In the app for both pages forms can be found.
I have now finished it so far that when you go to the "Inventory" page, you select an item (solved with lookup to item), then enter a stock (Bestand) for the previously selected item. So far so good!

Now to my problem:
I now want to be able to use two form fields (Input and Output) to change the stock that you previously entered. If an input is added, the stock is summed up with the current stock number. If an output is entered, the stock is of course subtracted.
This view i want at the end for the site: Inventory
#ID is autoincremt after submit the form of Inventory
#ID Item Stock Input Output
Does somebody has any idea?