PurVendor Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

PurVendor Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

PurVendor Table

Collapse All Expand All

iVend Database Database : PurVendor Table

Description

Defines the vendor details of an enterprise from which the products are purchased.

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

104

Data Space Used

24.00 KB

Index Space Used

16.00 KB

Columns

 

Column Name

Description

Datatype

Length

Allow Nulls

Default

Formula

Primary Key

VendorKey

System generated Primary key of the table.

VarWChar

50

 

 

 

 

Id

Refers to the vendor's id

VarWChar

20

 

 

 

 

CompanyName

Refers to the company name.

VarWChar

100

 

 

 

 

AddressKey

Refers to the key of the vendor's address. See also Address

VarWChar

50

 

 

 

 

BillingAddressKey

Refers to the key of the vendor's billing address. See also Address

VarWChar

50

 

 

 

 

ShippingAddressKey

Refers to the key of the vendor's shipping address. See also Address

VarWChar

50

 

 

 

 

HomeCurrencyKey

For future use

VarWChar

50

 

 

 

 

Email

Refers to the vendor's email id.

VarWChar

100

 

 

 

 

WebPage

Refers to thevendor's webpage.

VarWChar

100

 

 

 

 

IsTaxExempt

Flag to check whether the vendor is tax exempted or not.

Boolean

1

 

 

 

 

TaxNumber

Refers to the tax number of the vendor( Something like PAN)

VarWChar

40

 

 

 

 

PurchaseTaxCodeKey

Refers to the purchase tax code. See also Tax

VarWChar

50

 

 

 

 

SiteId

Site id where the vendor was created

Integer

4

 

 

 

 

IsActive

Flag to check whether the vendor is active or not.

Boolean

1

 

 

 

 

OnHold

Flag to check whether the vendor is on hold or not.

Boolean

1

 

 

 

 

PhoneNumber

Refers to the phone number

VarWChar

50

 

 

 

 

AlternatePhoneNumber

Refers to any alternate phone numbers.

VarWChar

50

 

 

 

 

MobilePhone

Refers to the mobile phone number.

VarWChar

50

 

 

 

 

FaxNumber

Refers to the fax number.

VarWChar

50

 

 

 

 

PrimaryContactKey

Refers to the primary contact(in case the customer si not a single person but a company etc.

VarWChar

50

 

 

 

 

IsTemplate

For future use

Boolean

1

 

 

 

 

PriceListKey

Refers to the pricelist applicable to the vendor. See also Price List

VarWChar

50

 

 

 

 

AccountingID

Maps to the unique id of the ERP system

VarWChar

50

 

 

 

 

MultiCurrency

Flag to check whether multi currency is allowed or not.

Boolean

1

 

((0))

 

 

Created

Date of creation of this record

DBTimeStamp

4

 

 

 

 

CreatedBy

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

VarWChar

50

 

 

 

 

Modified

Date of last modification of this record

DBTimeStamp

4

 

 

 

 

ModifiedBy

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

VarWChar

50

 

 

 

 

IsDeleted

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

Boolean

1

 

((0))

 

 

TaxCompanyType

Stores the value for the Vendor Type Valid values are Company = 0 Private = 1

Integer

4

 

((0))

 

 

VendorGroupKey

Reference key for the Vendor group.

VarWChar

50

dbimages_tick

((0))

 

Indexes

Index

Description

Primary

Unique

PK_PurVendor

 

dbimages_tick

dbimages_tick

Objects that depend on PurVendor

 

Database Object

Object Type

Description

Dep Level

GetNextAutoGeneratedCode procedure

GetNextAutoGeneratedCode

Stored Procedure

Generates the next code depending on the Source Type

1

GoodsReceiptPOReport procedure

GoodsReceiptPOReport

Stored Procedure

 

1

Integration_GoodsReceipt procedure

Integration_GoodsReceipt

Stored Procedure

 

1

Integration_GoodsReturn procedure

Integration_GoodsReturn

Stored Procedure

 

1

Integration_PurchaseOrder procedure

Integration_PurchaseOrder

Stored Procedure

 

1

Integration_StockTransfer procedure

Integration_StockTransfer

Stored Procedure

 

1

PurchaseOrderReport procedure

PurchaseOrderReport

Stored Procedure

 

1

vw_PurVendor view

vw_PurVendor

View

 

1

vw_SalesReportData view

vw_SalesReportData

View

 

1

vwAnalytics_OpenPO_Snapshot view

vwAnalytics_OpenPO_Snapshot

View

 

1

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[PurVendor](

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

[Id] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[CompanyName] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

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

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

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

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

[Email] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[WebPage] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[IsTaxExempt] [bit] NOT NULL,

[TaxNumber] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

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

[SiteId] [int] NOT NULL,

[IsActive] [bit] NOT NULL,

[OnHold] [bit] NOT NULL,

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

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

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

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

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

[IsTemplate] [bit] NOT NULL,

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

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

[MultiCurrency] [bit] NOT NULL,

[Created] [datetime] NOT NULL,

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

[Modified] [datetime] NOT NULL,

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

[IsDeleted] [bit] NOT NULL,

[TaxCompanyType] [int] NOT NULL,

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

CONSTRAINT [PK_PurVendor] PRIMARY KEY CLUSTERED

(

[VendorKey] 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].[PurVendor] ADD CONSTRAINT [DF_PurVendor_MultiCurrency] DEFAULT ((0)) FOR [MultiCurrency]

ALTER TABLE [dbo].[PurVendor] ADD CONSTRAINT [DF_VenVendor_IsDeleted] DEFAULT ((0)) FOR [IsDeleted]

ALTER TABLE [dbo].[PurVendor] ADD CONSTRAINT [DF_PurVendor_TaxCompanyType] DEFAULT ((0)) FOR [TaxCompanyType]

ALTER TABLE [dbo].[PurVendor] ADD CONSTRAINT [DF__PurVendor__Vendo__7DD8979A] DEFAULT ((0)) FOR [VendorGroupKey]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.