...
WHEN a production journal is posted:
For each Item Journal Line WHERE Item_Backflush after Work Order = TRUE
Populate the following in the Backflush Object
Work Order
Item Journal Line
Item
Base UOM
Calculate the following:
Work Line_Expected Quantity - Item Journal Line_Quantity
Save that value in Backflush_Backflush Quantity
...