In the PartTran record, there is a BeginQty and an AfterQty. I imagine you could find the last AfterQty on the previous day and use that as a starting point and then add/remove the delta between those fields.
As for doing the running total, you can use Window Functions in SQL as done here: