You can not make undo for line if type is not an item. Undo is designed only for items. If you have different type and you want to undo this, this is not so easy. You must post invoice and make credit memo for this invoice. After that, you can make new order and continue with right work.
Unfortunately, this is only way based on NAV standard. You can make customization, but be careful.