If you tick the final invoice, then PO will always calculate the line item into order..
If you delete the line item, then why you have marked this as final invoice ??
If you want to show the order quantity 800.
Remove the tick of final invoice, then delete the line item, then check your PO header status..