Hi,
please try this on Test environment first then apply.
1- confirm the output order number against the remainder qty (select the order line , click above button INVENTORY , where you can find the Output order , Unmarked view ended , and copy the INVENTORY ORDER NUMBER)
2- open AOT ->Data Dictionary ->Tables -> WMSOrderTrans (Right click and open )
3- in orderid field paste the same inventory order number .
4- delete the raws whose ExpeditionStatus is Activated
5- Now go to again the output order form , refresh the screen, and select End Inventory order in FUNCTIONS.
6- now go to the sales order screen and easily cancel the deliver render quantity.
7- please mark the answer correct , if you find this useful. others will get the solution.
Thanks