Hi,
If you have original quantity 10 and you only need to ship and invoice 5 then
in qty to ship and qty to invoice field add 5 and then post it
This will create Posted Sales Invoice of 5 quantity whereas the Sales Order will be remain open with remaining quantity 5
If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.