Applying discounts to work orders