Delivered Quantity, Received Quantity and Remained Quantity in Purchase Receipt

My friend Good evening,
how i can do this Delivered Quantity, Received Quantity and Remained Quantity
in Purchase Receipt

Note: Remained Quantity = Delivered Quantity - Received Quantity