draftOrderCalculate mutation as tax-exepted sell price

We are in the process of implementing a feature within our app that calculates discounts based on the tax-exempt prices of a product. As part of this development, we have identified the draftOrderCalculate mutation as the mechanism for obtaining tax-exempted sell prices. However, we have encountered a limitation – it does not provide information on tax-exempted compare prices. Our attempts to understand the logic behind the calculation of tax-exempted prices have resulted in confusion.

Notably, we observed an anomaly in cases where the market is not primary, and the “Include tax in prices” setting is turned off. For instance, setting a compare price of $20 and a sell price of $10, the conversion to INR for the Indian market yields a selling price of INR 1000 and a compare price of INR 1900. Upon applying tax exemption, the selling price adjusts to INR 900, while the compare price becomes INR 1700. According to our understanding, following the market conversion, the compare price should be INR 2000, and the Tax-exempted price should be INR 1800 so there is confusion.

For a visual representation of this confusion, please refer to the following link: https://www.loom.com/share/c6314e6acb7f4e24b54064c08cff7b5a?sid=89312f79-c792-4cea-bd12-c7300012b62b.

We extensively searched community forums, posts, and the Shopify partner Slack channel for a solution or calculation logic, unfortunately with no success. We are very confident that we receive the best knowledge and assistance here.

We appreciate your attention to this inquiry and eagerly await your prompt response.Best regards