ODOO - Bug - Refund of discounted invoice does not consider the discount

Environment - Bahmni 0.92 - https://erp-product-qa04.mybahmni.org/web

ODOO ->Login->Create Quotation->Apply Fixed Discount->Confirm Sale->Create Invoice->Validate->Register Payment. Now refund the same invoice. When refund is processed for such an invoice having discount, the refund invoice does not account for the discounted amount, instead only the pre-discount amount gets refunded. Following are the screen shots from QA04. Invoice with Discount -

Refund of the invoice showing the pre-discount amount

@angshuonline @anandpatel Has anyone noticed this? Should I raise JIRA Ticket for this?

Has any one tried to debug this?