PLEDGEORIGINALAMOUNT (4.0SP20)

Holds the original amount for a pledge.

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 pledge.

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.

TRANSACTIONAMOUNT

money

false

0

The original amount of a pledge in the transaction currency.

ORGANIZATIONAMOUNT

money

false

0

The original amount of a pledge in the organization currency.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_PLEDGEORIGINALAMOUNT_BASECURRENCYID

BASECURRENCYID

False

False

False

IX_PLEDGEORIGINALAMOUNT_BASEEXCHANGERATEID

BASEEXCHANGERATEID

False

False

False

IX_PLEDGEORIGINALAMOUNT_DATEADDED

DATEADDED

False

False

True

IX_PLEDGEORIGINALAMOUNT_DATECHANGED

DATECHANGED

False

False

False

IX_PLEDGEORIGINALAMOUNT_ORGANIZATIONEXCHANGERATEID

ORGANIZATIONEXCHANGERATEID

False

False

False

IX_PLEDGEORIGINALAMOUNT_TRANSACTIONCURRENCYID

TRANSACTIONCURRENCYID

False

False

False

PK_PLEDGEORIGINALAMOUNT

ID

True

True

False

Triggers
Trigger Name Description

TR_PLEDGEORIGINALAMOUNT_AUDIT_UPDATE

TR_PLEDGEORIGINALAMOUNT_AUDIT_DELETE

TR_PLEDGEORIGINALAMOUNT_INSERTUPDATE_CURRENCY