How is the «Apply Discount On Prices» («Excluding Tax» / «Including Tax») option handled?


Details: How is \Magento\Tax\Model\Config::discountTax() implemented and used?

See also:

How to setup the «Apply Customer Tax» option in accordance with the Russian tax law?