Talk Thread - https://talk.openmrs.org/t/odoo-bug-refund-of-discounted-invoice-does-not-consider-the-discount/24840
If the refund of any discounted (Fixed Discount applied under Discount Type) sales order is generated, it does not consider the discount instead makes an invoice of the actual amount.
Create Quotation > Apply Fixed Discount > Confirm Sale > Create Invoice > Validate > Register Payment. Now refund the same invoice. The invoice generated does not consider the discount provided to the customer instead shows the actual amount (pre-discounted amount)
PR: