MISCELLANEOUSPAYMENT (4.0SP17)

All miscellaneous payment records.

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

SYSTEMMASK

int

false

0

System of origin bit mask (1 - GL, 4 - AP, 8 - AR, 16 - SB, 32 - RE, 64 - PY, BBEC - 128, PE - 256, 2048 - CR) add more as we come to them

PAYMENTSOURCE

nvarchar(100)

false

''

Payment source

POSTSTATUSCODE

tinyint

false

1

Post status

POSTSTATUS

nvarchar(11) (Computed)

true

Provides a translation for the 'POSTSTATUSCODE' field.

PAYMENTMETHODCODE

tinyint

false

2

Payment method

PAYMENTMETHOD

nvarchar(11) (Computed)

true

Provides a translation for the 'PAYMENTMETHODCODE' field.

REFERENCE

nvarchar(20)

false

''

Reference

REFERENCEDATE

datetime

true

Reference date

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_MISCELLANEOUSPAYMENT_DATEADDED

DATEADDED

False

False

True

IX_MISCELLANEOUSPAYMENT_DATECHANGED

DATECHANGED

False

False

False

PK_MISCELLANEOUSPAYMENT

ID

True

True

False

Triggers
Trigger Name Description

TR_MISCELLANEOUSPAYMENT_IUD

TR_MISCELLANEOUSPAYMENT_AUDIT_UPDATE

TR_MISCELLANEOUSPAYMENT_AUDIT_DELETE