Discount due date calculation

Kofax AP Agility calculates the invoice discount due date by using payment term details of the vendor according to the following pattern.

If the DISCOUNT_DUE_DAYS field of the PAYMENT_TERMS_DETAIL table has a value, DUE_DATE is calculated as follows:

DISCOUNT_DUE_DATE = INVOICE_DATE + DISCOUNT_DUE_DAYS

If the DISCOUNT_DUE_DAYS field of the PAYMENT_TERMS_DETAIL table does not have a value, DUE_DATE is calculated as follows:

DISCOUNT_DUE_DATE month = INVOICE_DATE month + DISCOUNT_MONTH_FORWARD

The day value of DISCOUNTDUE_DATE corresponds to the value of the DISCOUNT_DAT_OF_MONTH_1 field.

An invoice is not sent to the Exception activity if Kofax AP Agility is unable to calculate the DISCOUNT_DUE_DATE.