<< Click to Display Table of Contents >> Navigation: iVend Database Database > Tables > RtlExpense Table |
Navigation: iVend Database Database > Tables >
iVend 6.6 Database Help
RtlExpense Table
Collapse All Expand All
iVend Database Database : RtlExpense Table |
Description
Stores the various expense captured at the Store and POS
Properties
Creation Date |
4/13/2015 12:00 PM |
File Group |
PRIMARY |
Text File Group |
PRIMARY |
System Object |
|
Published for Replication |
|
Rows |
0 |
Data Space Used |
0.00 KB |
Index Space Used |
0.00 KB |
Columns
|
Column Name |
Description |
Datatype |
Length |
Allow Nulls |
Default |
Formula |
ExpenseKey |
Primary Key |
VarWChar |
50 |
|
|
|
|
|
StoreKey |
Reference key of the store. See also RtlStore |
VarWChar |
50 |
|
|
|
|
POSKey |
Reference key of the POS. See also RtlPOS |
VarWChar |
50 |
|
|
|
|
TillKey |
Reference key of the Till. See also TilTill |
VarWChar |
50 |
|
|
|
|
TillSessionKey |
Reference key of the Till Session. See also TilSession |
VarWChar |
50 |
|
|
|
|
BusinessDate |
Refers to the business date of the store |
DBTimeStamp |
4 |
|
|
|
|
ReasonCodeKey |
Refers to the reason code key. See also Reason Codes |
VarWChar |
50 |
|
|
|
|
CommentKey |
Refers to the comment key.See also Comment |
VarWChar |
50 |
|
|
|
|
Amount |
Refers to the amount of the transaction |
Numeric |
9 (20,5) |
|
|
|
|
EntryDate |
Date on which the expense was captured |
DBTimeStamp |
4 |
|
|
|
|
UserKey |
Refers to the user key. See also User |
VarWChar |
50 |
|
|
|
|
StoreCurrencyKey |
Value is the Key for the defined currency at Store |
VarWChar |
50 |
|
|
|
|
StoreCurrencyExchangeRate |
Value is the Exchange Rate for the defined currency at Store |
Numeric |
9 (20,5) |
|
|
|
|
Comments |
Stores comments. |
VarWChar |
4000 |
|
|
Indexes
Index |
Description |
Primary |
Unique |
|
SQL
SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE TABLE [dbo].[RtlExpense]( [ExpenseKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [StoreKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [POSKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [TillKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [TillSessionKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [BusinessDate] [datetime] NOT NULL, [ReasonCodeKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [CommentKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Amount] [decimal](20, 5) NOT NULL, [EntryDate] [datetime] NOT NULL, [UserKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [StoreCurrencyKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [StoreCurrencyExchangeRate] [decimal](20, 5) NULL, [Comments] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, CONSTRAINT [PK_PmtExpense] PRIMARY KEY CLUSTERED ( [ExpenseKey] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] |
See Also
© 2019 All Rights Reserved.
Send comments on this topic.