To fix the issue, In Return Order Scenario, we get Tax Lines from Database and allign Tax Lines with respective SalesLine.
It will return all Tax lines related with a salesLine. We use these lines and make sum of them to get correct Tax Amount for the SalesLine.
We covered both the cases:
1. Return for Cash and Carry
2. Return for Customer Order.
We also checked, Japan Tax Scenario.