| Primary Key | Field Type | 
|---|---|
  ID | 
        uniqueidentifier | 
| Field | Field Type | Null | Notes | Description | 
|---|---|---|---|---|
  ORIGINALAMOUNT | 
        money | Default = 0 | The original amount of a payment. | |
  TRANSACTIONAMOUNT | 
        money | Default = 0 | The original amount of a payment in the transaction currency. | |
  ORGANIZATIONAMOUNT | 
        money | Default = 0 | The original amount of a payment in the organization currency. | |
  DATEADDED | 
        datetime | Default = getdate() | Indicates the date this record was added. | |
  DATECHANGED | 
        datetime | Default = getdate() | Indicates the date this record was last changed. | |
  TS | 
        timestamp | Timestamp. | ||
  TSLONG | 
        bigint (Computed) | ![]()  | 
        CONVERT(bigint, TS) | Numeric representation of the timestamp. | 
| Foreign Key | Field Type | Null | Notes | Description | 
|---|---|---|---|---|
  ID | 
        uniqueidentifier | FINANCIALTRANSACTION.ID | Primary Key. | |
  ADDEDBYID | 
        uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
  CHANGEDBYID | 
        uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
  BASECURRENCYID | 
        uniqueidentifier | ![]()  | 
        CURRENCY.ID | The base currency associated with this record. | 
  ORGANIZATIONEXCHANGERATEID | 
        uniqueidentifier | ![]()  | 
        CURRENCYEXCHANGERATE.ID | The exchange rate used to convert to the organization amount. | 
  TRANSACTIONCURRENCYID | 
        uniqueidentifier | ![]()  | 
        CURRENCY.ID | The transaction currency associated with this record. | 
  BASEEXCHANGERATEID | 
        uniqueidentifier | ![]()  | 
        CURRENCYEXCHANGERATE.ID | The exchange rate used to calculate the base amount. | 
| Index Name | Field(s) | Unique | Primary | Clustered | 
|---|---|---|---|---|
  IX_PAYMENTORIGINALAMOUNT_BASECURRENCYID | 
        BASECURRENCYID | |||
  IX_PAYMENTORIGINALAMOUNT_BASEEXCHANGERATEID | 
        BASEEXCHANGERATEID | |||
  IX_PAYMENTORIGINALAMOUNT_DATEADDED | 
        DATEADDED | ![]()  | 
    ||
  IX_PAYMENTORIGINALAMOUNT_DATECHANGED | 
        DATECHANGED | |||
  IX_PAYMENTORIGINALAMOUNT_ORGANIZATIONEXCHANGERATEID | 
        ORGANIZATIONEXCHANGERATEID | |||
  IX_PAYMENTORIGINALAMOUNT_TRANSACTIONCURRENCYID | 
        TRANSACTIONCURRENCYID | |||
  PK_PAYMENTORIGINALAMOUNT | 
        ID | ![]()  | 
        ![]()  | 
        
| Trigger Name | Description | 
|---|---|
  TR_PAYMENTORIGINALAMOUNT_AUDIT_UPDATE | 
        |
  TR_PAYMENTORIGINALAMOUNT_AUDIT_DELETE | 
        |
  TR_PAYMENTORIGINALAMOUNT_INSERTUPDATE_CURRENCY | 
        

 ID
 ORIGINALAMOUNT
 TSLONG
 ID
 IX_PAYMENTORIGINALAMOUNT_BASECURRENCYID
 IX_PAYMENTORIGINALAMOUNT_DATEADDED