You can override class methods, check this
We always do simple trick for such customisation. Change label of Qty - Custom Stock Qty and hide it. Add new field Qty (Custom Qty) Write script on selecting item, validate to change Qty to Stock Qty and Make Qty field hidden.