Create an order as customer with at least two items and COD payment such that a fee is applied
In back end invoice the order (it doesn't matter if it is shipped or not)
In back end try to create a credit memo for one of the items
Expected result
User can specify wether COD fee will be refunded in the credit memo, preferably he should also be able to specify the amount
Actual result
COD fee is refunded unconditionally. See attached screenshot
This is a problem with partial refunds (e.g. defective product or damaged on delivery etc). Also if you do multiple refunds on an order, COD fee is refunded multiple times, once on every credit memo (even though it was only payed once)
Note that it is possible to workaround the issue by applying an adjustment fee equal to the COD fee, but this is rather unituitive way to handle it and easy to make a mistake.
Preconditions
Steps to reproduce
Expected result
Actual result
This is a problem with partial refunds (e.g. defective product or damaged on delivery etc). Also if you do multiple refunds on an order, COD fee is refunded multiple times, once on every credit memo (even though it was only payed once)