How is the «Apply Customer Tax» («Before Discount» / «After Discount») option handled?

See also: