Add discounts in item line level of a transaction. This article briefs about scripts to apply discount to line items in a transaction.