I don't think that you will be able to post a negative invoice.
If the total of the planning lines are negative, why don't you move all the planning lines (the positive and negative ones) to a Credit Note?
After Credit Note has been posted, you can then do the customer refund from a payment journal, linking this to the posted Credit Note.