If you want to keep a running inventory you may want to edit the current master table record and then add oldvalues to the running inventory table. So if master table shows 10 items and you want to either add or subtract to that you can do so with JavaScript, then save. After saving add oldvalues to the running inventory table which will be a running inventory. This way your list page can show inline all transactions associated with that record item.