Dispatch all the items that need to be dispatched and complete the dispatch note.

To remove the unwanted quantity, the status of the line has to be Requested.

Go into the SOP > double click into the line you need to change > click onto the Delivery Details tab. 

Click the Trash icon and this will delete the quantity remaining that has not been dispatched.