How to apply discount after tax programatically for a Magento 2 order?
I have created an order programatically in Magento 2. I am provided with data: Item value: $10 Tax Rate: 20% Discount: $2 Grand Total: $10 Now taxes are inclusive product prices, so by default in Magento 2: Item price: $10…