Dear
You have only three options.
Change quantity f3om 10 to 7.
Reject whole line item and add new line item with 7 quantity.
Delete line item and add new with 7 quantity.
All above will work if you dont have created subsequent document I.e delivery or billing. If you have done this then you have to reverse those first.
Thank$