AGINGBUCKET
This contains all aging buckets.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
APPLICATIONCODE |
tinyint |
|
Default = 0 |
Selects the application to which the aging periods belong. |
APPLICATION |
nvarchar(8) (Computed) |
yes |
CASE [APPLICATIONCODE] WHEN 0 THEN N'Defaults' WHEN 1 THEN N'Payables' END |
Provides a translation for the 'APPLICATIONCODE' field. |
PERIODNUMBER |
int |
|
Default = 0 |
Aging period number |
PERIODSTART |
smallint |
|
Default = ((0)) |
Start day for aging period |
PERIODEND |
smallint |
|
Default = ((32767)) |
End day for aging period |
PERIODDESCRIPTION |
nvarchar(20) |
|
Default = '' |
Description of aging period |
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 |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_AGINGBUCKET_DATEADDED |
DATEADDED |
|
|
yes |
IX_AGINGBUCKET_DATECHANGED |
DATECHANGED |
|
|
|
PK_AGINGBUCKET |
ID |
yes |
yes |
|
UIX_AGINGBUCKET_APPLICATIONCODE_PERIODNUMBER |
APPLICATIONCODE, PERIODNUMBER |
yes |
|
|
Triggers