How to apply a discount on a vendor payment or bill?

How to Apply Vendor Discounts to Bills