Primary Key | Field Type |
---|---|
![]() |
uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
nvarchar(100) | Default = '' | A name for the expense. | |
![]() |
nvarchar(255) | Default = '' | A description of the expense. | |
![]() |
money | Default = 0 | The cost associated with the expense. | |
![]() |
tinyint | Default = 0 | The method to be used to apply the expense's base cost to a marketing effort. | |
![]() |
datetime | Default = getdate() | Indicates the date this record was added. | |
![]() |
datetime | Default = getdate() | Indicates the date this record was last changed. | |
![]() |
timestamp | Timestamp. | ||
![]() |
bigint (Computed) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
![]() |
money | Default = 0 | The amount of the cost in organization currency. | |
![]() |
nvarchar(39) (Computed) | ![]() |
CASE [COSTDISTRIBUTIONMETHODCODE] WHEN 0 THEN N'Per piece' WHEN 1 THEN N'Per response' WHEN 2 THEN N'Per marketing effort' WHEN 4 THEN N'Per thousand' WHEN 3 THEN N'Do not include in marketing effort cost' END |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
![]() |
uniqueidentifier | ![]() |
SITE.ID | The site to which the expense belongs. |
![]() |
uniqueidentifier | ![]() |
MKTEXPENSETYPECODE.ID | The type of the expense. |
![]() |
uniqueidentifier | ![]() |
VENDOR.ID | The vendor associated with this expense. |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
![]() |
uniqueidentifier | ![]() |
CURRENCY.ID | The base currency associated with this document. |
![]() |
uniqueidentifier | ![]() |
CURRENCYEXCHANGERATE.ID | The exchange rate used to convert from amount to organization amount. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
![]() |
BASECURRENCYID | |||
![]() |
CURRENCYEXCHANGERATEID | |||
![]() |
DATEADDED | ![]() |
||
![]() |
DATECHANGED | |||
![]() |
SITEID | |||
![]() |
VENDORID | |||
![]() |
ID | ![]() |
![]() |
|
![]() |
NAME | ![]() |
Trigger Name | Description |
---|---|
![]() |
|
![]() |
|
![]() |
Referenced by | Field |
---|---|
![]() |
EXPENSEID |