I'm stuck trying to work out how to show the previous delivered quantity from the previous goods in.
So far I've tried copying the received value (GOODSINLINE::Qty_Received) to a global variable on PURCHASE_ORDER_DETAILS::variable_previously_received.
When another Goods-In record is created a loop is made through the details on the purchase_order to bring up the correct product codes.
At this point I was think that If I set the variable of PURCHASE_ORDER_DETAILS::variable_previously_received before a new record has been created I could use this plus the value already stored within GOODSINLINE::Previously_Received to show different values across all of the GOODSIN.
I have tried to just have the value purely stored on purchase_order_details but this would mean across i.e. 6 deliveries the previously delivered value would be the same.
Creating new goods in record
Adding goods into stock - part