See also:
- How is
\Magento\Tax\Model\Config::discountTax()
implemented and used? - How is
\Magento\Tax\Model\Config::applyTaxAfterDiscount()
implemented and used? - How is the «Apply Discount On Prices» («Excluding Tax» / «Including Tax») option handled?
- How is the «Apply Customer Tax» («Before Discount» / «After Discount») option handled?