How to set up automatic payment deduction for early payment discount?

We currently have a vendor that will offer a 1% discount for early payment. I have set up a new vendor term with the following:

(1) Discount excluding Tax

(2) Due Date Type/Discount Type: Days from Invoiced Date

(3) Percent Due: 100%

(4) # of Days: 10

(5) Discount Percent: 1%

(6) Number of Days: 0

When I enter in the invoice in A/P, it shows the discount on the 'Totals' tab. (Entering the invoice in at 100%). However, when I run a payment batch, the discount isn't taken and the payment end up at 100% without taking the 1% discount. I checked the payment batch and it's calculating the "discount available" but not applying it to the invoice. Where can I go to set up 'take available discount" automatically so I don't have to do it for every invoice?


Thanks,

Diana