PAYMENTTERM (4.0SP23)

Payment Term

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

NAME

nvarchar(20)

false

''

Name of the payment term

DESCRIPTION

nvarchar(100)

false

''

Description of the payment term

INCLUDEDISCOUNT

bit

false

0

True if the payment term includes a discount

DISCOUNTPERCENT

decimal(20, 4)

false

0.0

Discount applied when discount terms are met

DISCOUNTDAYS

smallint

false

((0))

Number of days the payment needs to be made for the discount terms to be applied

PAYMENTDUECODE

tinyint

false

0

Selects how the due date of the payment is represented

PAYMENTDUE

nvarchar(12) (Computed)

true

Provides a translation for the 'PAYMENTDUECODE' field.

DAYSDUE

smallint

false

((0))

Number of days in which a payment is due. PaymentDueCode must be 'Days'

DAYOFMONTHDUE

smallint

false

((15))

Day of month on which a payment is due. PaymentDue must be 'Day of month'

MONTHDUECODE

tinyint

false

0

Month in which a payment is due

MONTHDUE

nvarchar(7) (Computed)

true

Provides a translation for the 'MONTHDUECODE' field.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_PAYMENTTERM_DATEADDED

DATEADDED

False

False

True

IX_PAYMENTTERM_DATECHANGED

DATECHANGED

False

False

False

PK_PAYMENTTERM

ID

True

True

False

UIX_PAYMENTTERM_NAME

NAME

True

False

False

Triggers
Trigger Name Description

TR_PAYMENTTERM_AUDIT_UPDATE

TR_PAYMENTTERM_AUDIT_DELETE

Referenced by
Referenced by Field

VENDOR

PAYMENTTERMID