Invoice Schedule Information
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
STARTDATE |
datetime |
|
|
The start date for the schedule. |
NUMBEROFINSTALLMENTS |
int |
|
Default = 0 |
The number of the schedule. |
FREQUENCYCODE |
tinyint |
|
Default = 0 |
Indicates the frequency of the installment. |
FREQUENCY |
nvarchar(18) (Computed) |
yes |
CASE [FREQUENCYCODE] WHEN 0 THEN N'Annually' WHEN 1 THEN N'Semiannually' WHEN 2 THEN N'Quarterly' WHEN 3 THEN N'Monthly' WHEN 4 THEN N'Irregular' WHEN 5 THEN N'Single Installment' WHEN 6 THEN N'Bimonthly' WHEN 7 THEN N'Semimonthly' WHEN 8 THEN N'Biweekly' WHEN 9 THEN N'Weekly' END |
Provides a translation for the 'FREQUENCYCODE' field. |
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ID |
uniqueidentifier |
|
INVOICE.ID
|
Primary Key. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_INVOICESCHEDULEINFORMATION_DATEADDED |
DATEADDED |
|
|
yes |
IX_INVOICESCHEDULEINFORMATION_DATECHANGED |
DATECHANGED |
|
|
|
PK_INVOICESCHEDULEINFORMATION |
ID |
yes |
yes |
|
Triggers