<< Click to Display Table of Contents >> Navigation: iVend Database Database > Tables > TrxTransactionAudit Table |
Navigation: iVend Database Database > Tables >
iVend 6.6 Database Help
TrxTransactionAudit Table
Collapse All Expand All
iVend Database Database : TrxTransactionAudit Table |
Description
Stores audit information like Reason code and comments for any unsual activity carried on the POS against a transaction like Price override, Discount override. Whether reason code or comment is required depends on the settings made in the applicable Retail profile.
Properties
Creation Date |
4/13/2015 12:00 PM |
File Group |
PRIMARY |
Text File Group |
|
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 |
TransactionAuditKey |
System - generated Primary Key |
VarWChar |
50 |
|
|
|
|
|
TransactionKey |
Reference Key of Transaction. See also Transaction |
VarWChar |
50 |
|
|
|
|
SourceDetailType |
Refers to the source detail type. Valid values are: None = 0 Sale = 1 Order = 2 Rental = 3 Layaway = 4 |
Integer |
4 |
|
|
|
|
SourceDetailKey |
Refers to the source detail key |
VarWChar |
50 |
|
|
|
|
AuditType |
Type of activity on POS for which audit is required. Valid values are: None = 0 VoidItem = 1 VoidSale = 2 PriceOverride = 3 ItemTaxOverride = 4 SaleTaxOverride = 5 RefundItem = 6 RefundSale = 7 ItemDiscount = 8 SaleDiscount = 9 |
Integer |
4 |
|
|
|
|
ReasonCodeKey |
Reference Key of Reason Code. See also Reason Code |
VarWChar |
50 |
|
|
|
|
Comment |
The comment given with the audit. |
VarWChar |
255 |
|
|
|
|
UserKey |
Reference Key of User. See also User |
VarWChar |
50 |
|
|
|
|
POSKey |
Reference Key of POS. See also POS |
VarWChar |
50 |
|
|
|
|
StoreKey |
Reference Key of Store. See also Store |
VarWChar |
50 |
|
|
|
|
Created |
Date of creation of this record |
DBTimeStamp |
4 |
|
|
|
|
BusinessDate |
Business date of the store where the tranasction is carried out |
DBTimeStamp |
4 |
|
|
|
Indexes
Index |
Description |
Primary |
Unique |
|
|
|
|
|
SQL
SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE TABLE [dbo].[TrxTransactionAudit]( [TransactionAuditKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [TransactionKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [SourceDetailType] [int] NOT NULL, [SourceDetailKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [AuditType] [int] NOT NULL, [ReasonCodeKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Comment] [nvarchar](255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [UserKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [POSKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [StoreKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Created] [datetime] NOT NULL, [BusinessDate] [datetime] NOT NULL, CONSTRAINT [PK_TrxTransactionAudit] PRIMARY KEY CLUSTERED ( [TransactionAuditKey] 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.