TrxTransactionPromotionDetail Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

TrxTransactionPromotionDetail Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

TrxTransactionPromotionDetail Table

Collapse All Expand All

iVend Database Database : TrxTransactionPromotionDetail Table

Description

Stores the promotion applied details on the transaction

Properties

Creation Date

4/13/2015 12:00 PM

File Group

PRIMARY

Text File Group

 

System Object

dbimages_boolean-false

Published for Replication

dbimages_boolean-false

Rows

0

Data Space Used

0.00 KB

Index Space Used

0.00 KB

Columns

 

Column Name

Description

Datatype

Length

Allow Nulls

Default

Formula

Primary Key

TransactionPromotionDetailKey

Value is the system generated key of the transaction payment.

VarWChar

50

 

 

 

 

TransactionKey

Reference key of the Transaction. See also Transaction

VarWChar

50

 

 

 

 

Type

Specifies whether the promotion got applied on Principal or Associate item.

Valid values are:

PrincipalItem = 0

AssociateItem = 1

Integer

4

 

 

 

 

TransactionItemKey

Reference key of the Transaction line item on which the promotion has got applied

VarWChar

50

 

 

 

 

PromotionKey

Reference key of the Promotion which got applied on the Transaction. See also Promotion

VarWChar

50

 

 

 

 

Quantity

Quantity on which promotion got applied

Numeric

9 (20,5)

 

 

 

 

DiscountAmount

Promotion discount amount that has got applied on the line item

Numeric

9 (20,5)

 

 

 

 

ItemType

Stores the type of line item on which the promotion got applied.

Valid values are:

None = 0

Sales = 1

Order = 2

Layaway = 3

Integer

4

 

 

 

 

Sets

Number of sets that qualify for promotion

Integer

4

 

 

 

 

PromotionNumber

Promotion line number to identify transaction line number

Integer

4

 

 

 

 

StoreKey

 

VarWChar

50

dbimages_tick

 

 

 

CustomerKey

 

VarWChar

50

dbimages_tick

 

 

 

LoyaltyId

 

VarWChar

50

dbimages_tick

 

 

Indexes

Index

Description

Primary

Unique

IX_TrxTransactionPromotionDetail

 

 

 

PK_TrxTransactionPromotionDetail

 

dbimages_tick

dbimages_tick

Objects that depend on TrxTransactionPromotionDetail

 

Database Object

Object Type

Description

Dep Level

Loy_GetTransactionPromotionDetail procedure

Loy_GetTransactionPromotionDetail

Stored Procedure

 

1

TrxCompleteTransactionUpdates procedure

TrxCompleteTransactionUpdates

Stored Procedure

 

1

vwAnalytics_MerchandisePromotionSales view

vwAnalytics_MerchandisePromotionSales

View

 

1

vwAnalytics_PromotionSales view

vwAnalytics_PromotionSales

View

 

1

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[TrxTransactionPromotionDetail](

[TransactionPromotionDetailKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[TransactionKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[Type] [int] NOT NULL,

[TransactionItemKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[PromotionKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[Quantity] [decimal](20, 5) NOT NULL,

[DiscountAmount] [decimal](20, 5) NOT NULL,

[ItemType] [int] NOT NULL,

[Sets] [int] NOT NULL,

[PromotionNumber] [int] NOT NULL,

[StoreKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[CustomerKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[LoyaltyId] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

CONSTRAINT [PK_TrxTransactionPromotionDetail] PRIMARY KEY CLUSTERED

(

[TransactionPromotionDetailKey] 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

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.