FEE (4.0SP20)

Stores information for fees.

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

NAME

nvarchar(100)

false

''

The name used to identify the fee.

DESCRIPTION

nvarchar(255)

false

''

The description of the fee.

APPLIESTOCODE

tinyint

false

0

The type of fee: 0 - Order, 1 - Item.

APPLIESTO

nvarchar(5) (Computed)

true

Provides a translation for the 'APPLIESTOCODE' field.

TYPECODE

tinyint

false

0

The type of amount for the fee: 0 - Amount, 1 - Percent.

TYPE

nvarchar(7) (Computed)

true

Provides a translation for the 'TYPECODE' field.

AMOUNT

money

false

0

The amount of the fee

PERCENT

decimal(5, 2)

false

0

The percent value of the fee.

ISACTIVE

bit

false

1

Indicates if the fee is currently active.

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_FEE_DATEADDED

DATEADDED

False

False

True

IX_FEE_DATECHANGED

DATECHANGED

False

False

False

PK_FEE

ID

True

True

False

UC_FEE_NAME

NAME

True

False

False

Triggers
Trigger Name Description

TR_FEE_AUDIT_UPDATE

TR_FEE_AUDIT_DELETE

Referenced by
Referenced by Field

DELIVERYMETHODFEE

FEEID

FEEGLMAPPING

ID

FEETAX

FEEID

PROGRAMFEE

FEEID

RATESCALEAPPLICATION

FEEID

RATESCALEFEE

FEEID

RESERVATIONRATESCALEAPPLICATION

FEEID

RESERVATIONRATESCALEFEE

FEEID

REVENUESPLITORDER

FEEID

SALESMETHODFEE

FEEID

SALESORDERFEEDELETED

FEEID

SALESORDERITEMFEE

FEEID