Hello Paul, so the bit of code that does the magic is as below. Now, thanks to your earlier advice this bit works fine now to calculate planned inventory for 1 item number.
As can be seen, it's a simple ExpectedQTY decrement or increment counter.. if the TransType is + , the value of 'y' will...