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

See also: