ConTrxTransactionSaleItem Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

ConTrxTransactionSaleItem Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

ConTrxTransactionSaleItem Table

Collapse All Expand All

iVend Database Database : ConTrxTransactionSaleItem Table

Description

Stores the consolidated values for the Transaction Sale Item

Properties

Creation Date

4/13/2015 12:00 PM

File Group

PRIMARY

Text File Group

PRIMARY

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

TransactionItemKey

System generated Primary Key

VarWChar

50

 

 

 

 

TransactionKey

Reference Key of Transaction. See also Transaction

VarWChar

50

dbimages_tick

 

 

 

Type

The sale item type of transaction made in the transaction.

Integer

4

dbimages_tick

 

 

 

WarehouseKey

The warehouse associated with the store. See also Warehouse

VarWChar

50

dbimages_tick

 

 

 

ProductKey

Reference key of the product. See also Product

VarWChar

50

dbimages_tick

 

 

 

InventoryItemKey

Reference Key of InventoryItem. See also Inventory Item

VarWChar

50

dbimages_tick

 

 

 

Description

Refers to the description for the Transaction Sale item

VarWChar

100

dbimages_tick

 

 

 

HasSerialNumber

This flag checks If the product is of serial item, then that item contains the serial numbers or not

Boolean

1

dbimages_tick

 

 

 

HasBatchNumber

Specifies whether the line item has a valid batch number attached to it

Boolean

1

dbimages_tick

 

 

 

HasFulfillment

Specifies whether the line item has a valid fulfillment attached to it

Boolean

1

dbimages_tick

 

 

 

HasSurcharges

Specifies whether the line item has a valid surcharges attached to it

Boolean

1

dbimages_tick

 

 

 

HasDiscounts

Specifies whether any discounts have been applied on the line item

Boolean

1

dbimages_tick

 

 

 

TaxCodeKey

Reference Key of TaxCode if given at the line-level. See also Tax

VarWChar

50

dbimages_tick

 

 

 

TaxRate

The rate of the TaxCode

Numeric

9 (20,5)

dbimages_tick

 

 

 

HasTaxCodeOverride

This flag checks if the tax code has been overrided by the user

Boolean

1

dbimages_tick

 

 

 

OriginalPrice

The original price of the sale item

Numeric

9 (20,5)

dbimages_tick

 

 

 

BasePrice

The price which is tax exclusive

Numeric

9 (20,5)

dbimages_tick

 

 

 

Price

The overriden price of the sale item

Numeric

9 (20,5)

dbimages_tick

 

 

 

PriceSource

Value is the price source of the order item.

Integer

4

dbimages_tick

 

 

 

Quantity

Quantity of the line item

Numeric

9 (20,5)

dbimages_tick

 

 

 

OpenQuantity

The quantity which remains to be fulfilled (in case of fulfillment attached)

Numeric

9 (20,5)

dbimages_tick

 

 

 

FullfilledQuantity

The actual quantity that has been fulfilled/delivered (in case of fulfillment attached)

Numeric

9 (20,5)

dbimages_tick

 

 

 

RefundedQuantity

The quantity which has been refunded

Numeric

9 (20,5)

dbimages_tick

 

 

 

SubTotal

This amount is the BasePrice * Quantity

Numeric

9 (20,5)

dbimages_tick

 

 

 

DiscountType

Discount type applicable.

Integer

4

dbimages_tick

 

 

 

DiscountAmount

Value is the discount amount applied to the line item.

Numeric

9 (20,5)

dbimages_tick

 

 

 

DiscountPercent

The % of discount been given at the line-level

Numeric

9 (20,5)

dbimages_tick

 

 

 

SaleDiscountAmount

The discount amount applicable to the sale-level

Numeric

9 (20,5)

dbimages_tick

 

 

 

SystemDiscount

System-calculated discount

Numeric

9 (20,5)

dbimages_tick

 

 

 

ExclusiveDiscountPercent

Discount percentage applied on the Line item on exclusive price

Numeric

9 (20,5)

dbimages_tick

 

 

 

TaxableDiscountAmount

For future use

Numeric

9 (20,5)

dbimages_tick

 

 

 

StoreTaxableDiscountAmount

For future use

Numeric

9 (20,5)

dbimages_tick

 

 

 

Tax

Tax of the line-level item

Numeric

9 (20,5)

dbimages_tick

 

 

 

SurchargeTotal

The surcharge amount given at the line level

Numeric

9 (20,5)

dbimages_tick

 

 

 

PostTaxDiscount

For future use

Numeric

9 (20,5)

dbimages_tick

 

 

 

PostTaxDiscountLiability

For future use

Numeric

9 (20,5)

dbimages_tick

 

 

 

PostTaxDiscountStoreLiability

For future use

Numeric

9 (20,5)

dbimages_tick

 

 

 

Total

Value is the total amount of the line item.

Numeric

9 (20,5)

dbimages_tick

 

 

 

TotalBeforeSaleDiscount

Value is the total amount before any sale discount had been applied.

Numeric

9 (20,5)

dbimages_tick

 

 

 

TotalPostSaleDiscount

Value is the total amount after any sale discount applied.

Numeric

9 (20,5)

dbimages_tick

 

 

 

OriginalDocumentKey

References to the original transaction key, used in case of refund, deliveries

VarWChar

50

dbimages_tick

 

 

 

OriginalDetailKey

References to the original detail key, used in case of refund, deliveries

VarWChar

50

dbimages_tick

 

 

 

CommentKey

Refers to the comment key. See also Comment

VarWChar

50

dbimages_tick

 

 

 

ProductDetailKey

References to the SerialKey/BatchKey of Serial/Batch, in case you made the transaction for serial/batch product

VarWChar

50

dbimages_tick

 

 

 

IsExchange

Flag to mark the sale-item entry as exchangeable

Boolean

1

dbimages_tick

 

 

 

IsPromotionApplied

Flag to check whether promotion is applied or not

Boolean

1

dbimages_tick

 

 

 

PromotionalQuantity

Refers to the promotional quantity

Numeric

9 (20,5)

dbimages_tick

 

 

 

HasDiscountOverride

This flag checks if the discounts has been overrided by the user

Boolean

1

dbimages_tick

 

 

 

TransactionQuotationKey

Stores the Key of the Quotation from which this item is converted to sale item.

VarWChar

50

dbimages_tick

 

 

 

UserKey

Reference Key of User who made this transaction. See also User

VarWChar

50

dbimages_tick

 

 

 

DeliveryWarehouseKey

Stores the WarehouseKey of the warehouse from where the delivery is requested for this item

VarWChar

50

 

((0))

 

 

BookingWarehouseKey

Stores the WarehouseKey of the warehouse from where the transaction is being done

VarWChar

50

 

((0))

 

 

UOMQuantity

Stores the UOM quantity

Numeric

9 (20,5)

dbimages_tick

 

 

 

UOMGroupDetailKey

Reference Key for the UOM group detail

VarWChar

50

dbimages_tick

 

 

 

Comments

 

VarWChar

4000

dbimages_tick

 

 

Indexes

Index

Description

Primary

Unique

IX_ConTrxTransactionSaleItem

 

 

 

PK_ConTrxTransactionSaleItem

 

dbimages_tick

dbimages_tick

Objects that depend on ConTrxTransactionSaleItem

 

Database Object

Object Type

Description

Dep Level

Integration_Consolidated_Transaction procedure

Integration_Consolidated_Transaction

Stored Procedure

 

1

Integration_Consolidated_TransactionSurcharge procedure

Integration_Consolidated_TransactionSurcharge

Stored Procedure

 

1

TrxConsolidateTransaction procedure

TrxConsolidateTransaction

Stored Procedure

 

1

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[ConTrxTransactionSaleItem](

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

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

[Type] [int] NULL,

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

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

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

[Description] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[HasSerialNumber] [bit] NULL,

[HasBatchNumber] [bit] NULL,

[HasFulfillment] [bit] NULL,

[HasSurcharges] [bit] NULL,

[HasDiscounts] [bit] NULL,

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

[TaxRate] [decimal](20, 5) NULL,

[HasTaxCodeOverride] [bit] NULL,

[OriginalPrice] [decimal](20, 5) NULL,

[BasePrice] [decimal](20, 5) NULL,

[Price] [decimal](20, 5) NULL,

[PriceSource] [int] NULL,

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

[OpenQuantity] [decimal](20, 5) NULL,

[FullfilledQuantity] [decimal](20, 5) NULL,

[RefundedQuantity] [decimal](20, 5) NULL,

[SubTotal] [decimal](20, 5) NULL,

[DiscountType] [int] NULL,

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

[DiscountPercent] [decimal](20, 5) NULL,

[SaleDiscountAmount] [decimal](20, 5) NULL,

[SystemDiscount] [decimal](20, 5) NULL,

[ExclusiveDiscountPercent] [decimal](20, 5) NULL,

[TaxableDiscountAmount] [decimal](20, 5) NULL,

[StoreTaxableDiscountAmount] [decimal](20, 5) NULL,

[Tax] [decimal](20, 5) NULL,

[SurchargeTotal] [decimal](20, 5) NULL,

[PostTaxDiscount] [decimal](20, 5) NULL,

[PostTaxDiscountLiability] [decimal](20, 5) NULL,

[PostTaxDiscountStoreLiability] [decimal](20, 5) NULL,

[Total] [decimal](20, 5) NULL,

[TotalBeforeSaleDiscount] [decimal](20, 5) NULL,

[TotalPostSaleDiscount] [decimal](20, 5) NULL,

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

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

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

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

[IsExchange] [bit] NULL,

[IsPromotionApplied] [bit] NULL,

[PromotionalQuantity] [decimal](20, 5) NULL,

[HasDiscountOverride] [bit] NULL,

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

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

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

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

[UOMQuantity] [decimal](20, 5) NULL,

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

[Comments] [nvarchar](4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

CONSTRAINT [PK_ConTrxTransactionSaleItem] PRIMARY KEY CLUSTERED

(

[TransactionItemKey] 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].[ConTrxTransactionSaleItem] ADD CONSTRAINT [DF_ConTrxTransactionSaleItem_DeliveryStoreKey] DEFAULT ((0)) FOR [DeliveryWarehouseKey]

ALTER TABLE [dbo].[ConTrxTransactionSaleItem] ADD CONSTRAINT [DF_ConTrxTransactionSaleItem_BookingWarehouseKey] DEFAULT ((0)) FOR [BookingWarehouseKey]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.