"Core" charges for an alternator?

I also found this, years ago I purchased 5 macintosh computers that had a rebate of 30% (not sure of this number), but had to pay sales tax on the full amount. Appealed to the state, no go.

rebate, taxed. Discount, not. makes no sense to me as they are both basically the same.