Will a Discount for Cash Run Afoul of the IRS?

If you take a cash discount from vendors who offer the deal to dodge taxes, you aren't at legal risk -- they are. Plus, can you spend your company's per-diem travel allowance as you please?