If user has created sales order of 1 barcode and with 10 quantity out which 4 quantity are available and remaining 6 will goes for production. When production team view the master plan ,both available quantity and order qty display there. So accordingly allocate the qty to produce.