PAYMENTORIGINALAMOUNT (4.0SP14)

Holds the original amount for a payment.

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.

BASECURRENCYID

uniqueidentifier

true

The base currency associated with this record.

ORGANIZATIONEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to convert to the organization amount.

TRANSACTIONCURRENCYID

uniqueidentifier

true

The transaction currency associated with this record.

BASEEXCHANGERATEID

uniqueidentifier

true

The exchange rate used to calculate the base amount.

Fields
Field Field Type Null Notes Description

ORIGINALAMOUNT

money

false

0

The original amount of a payment.

TRANSACTIONAMOUNT

money

false

0

The original amount of a payment in the transaction currency.

ORGANIZATIONAMOUNT

money

false

0

The original amount of a payment in the organization currency.

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_PAYMENTORIGINALAMOUNT_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_PAYMENTORIGINALAMOUNT_BASEEXCHANGERATEID

BASEEXCHANGERATEID

False

False

False

IX_PAYMENTORIGINALAMOUNT_DATEADDED

DATEADDED

False

False

True

IX_PAYMENTORIGINALAMOUNT_DATECHANGED

DATECHANGED

False

False

False

IX_PAYMENTORIGINALAMOUNT_ORGANIZATIONEXCHANGERATEID

ORGANIZATIONEXCHANGERATEID

False

False

False

IX_PAYMENTORIGINALAMOUNT_TRANSACTIONCURRENCYID

TRANSACTIONCURRENCYID

False

False

False

PK_PAYMENTORIGINALAMOUNT

ID

True

True

False

Triggers
Trigger Name Description

TR_PAYMENTORIGINALAMOUNT_INSERTUPDATE_CURRENCY

TR_PAYMENTORIGINALAMOUNT_AUDIT_UPDATE

TR_PAYMENTORIGINALAMOUNT_AUDIT_DELETE