Hi,
The following hotfix seems to address your issue:
KB 3086858Committed costs are wrong when partially invoicing a PO and then cancel the delivery remainder and finalize the line
Please check at LCS, download and test it in a demo environment first before appying it in live.
Best regards,
Ludwig