InvUpsellProduct Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

InvUpsellProduct Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

InvUpsellProduct Table

Collapse All Expand All

iVend Database Database : InvUpsellProduct Table

Description

Defines a list of upsell products associated with each parent product that can be sold along with the parent product at the POS.

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

39

Data Space Used

8.00 KB

Index Space Used

8.00 KB

Columns

 

Column Name

Description

Datatype

Length

Allow Nulls

Default

Formula

Primary Key

UpsellProductKey

System generated Primary key of the table.

VarWChar

50

 

 

 

 

ParentProductKey

Refers to the parent product

VarWChar

50

 

 

 

 

ProductKey

Refers to the upsell product

VarWChar

50

 

 

 

 

PriceOverride

For future use

Boolean

1

 

 

 

 

AmountType

For future use

Integer

4

 

 

 

 

Amount

For future use

Numeric

9 (20,5)

 

 

 

 

CreatedBy

Reference of user who has created this record. See also Security User

VarWChar

50

 

 

 

 

Created

Date of creation of this record

DBTimeStamp

4

 

 

 

 

ModifiedBy

Reference of user who has modified this record. See also Security User

VarWChar

50

 

 

 

 

Modified

Date of last modification of this record

DBTimeStamp

4

 

 

 

 

IsDeleted

Value is True if the record has been deleted from the system. Record is always Soft Deleted

Boolean

1

 

 

 

 

AutoAddToTransaction

Value is True if the Upsell Product is to be added automatically to the transaction.

Boolean

1

 

((0))

 

 

DiscountType

Specifies whether discount has been defined in amount or precentage.

Valid values are:

None = 0

Amount = 1

Percentage = 2

Integer

4

 

((0))

 

 

Discount

Discount amount or percentage depending on the discount type selected.

Numeric

9 (20,5)

 

((0))

 

Indexes

Index

Description

Primary

Unique

PK_MerUpsellProduct

 

dbimages_tick

dbimages_tick

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[InvUpsellProduct](

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

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

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

[PriceOverride] [bit] NOT NULL,

[AmountType] [int] NOT NULL,

[Amount] [numeric](20, 5) NOT NULL,

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

[Created] [datetime] NOT NULL,

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

[Modified] [datetime] NOT NULL,

[IsDeleted] [bit] NOT NULL,

[AutoAddToTransaction] [bit] NOT NULL,

[DiscountType] [int] NOT NULL,

[Discount] [numeric](20, 5) NOT NULL,

CONSTRAINT [PK_MerUpsellProduct] PRIMARY KEY CLUSTERED

(

[UpsellProductKey] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

ALTER TABLE [dbo].[InvUpsellProduct] ADD CONSTRAINT [DF_InvUpsellProduct_AutoAddToTransaction] DEFAULT ((0)) FOR [AutoAddToTransaction]

ALTER TABLE [dbo].[InvUpsellProduct] ADD CONSTRAINT [DF_InvUpsellProduct_DiscountType] DEFAULT ((0)) FOR [DiscountType]

ALTER TABLE [dbo].[InvUpsellProduct] ADD CONSTRAINT [DF_InvUpsellProduct_Discount] DEFAULT ((0)) FOR [Discount]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.