vwAnalytics_MerchandiseInventoryCount View

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Views >

vwAnalytics_MerchandiseInventoryCount View

Navigation: iVend Database Database > Views >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

vwAnalytics_MerchandiseInventoryCount View

Collapse All Expand All

iVend Database Database : vwAnalytics_MerchandiseInventoryCount View

Properties

Creation Date

4/13/2015 12:00 PM

Is Schema Bound

dbimages_boolean-false

Encrypted

dbimages_boolean-false

Ansi Nulls

dbimages_boolean-true

Columns

 

Column Name

Description

Datatype

Length

Allow Nulls

Default

Formula

 

Hierarchy

 

VarWChar

100

dbimages_tick

 

 

 

HierarchyNode

 

VarWChar

50

 

 

 

 

Product

 

VarWChar

100

 

 

 

 

Warehouse

 

VarWChar

100

dbimages_tick

 

 

 

CountingDate

 

DBTimeStamp

4

 

 

 

 

StartingCount

 

Numeric

9 (20,5)

 

 

 

 

InStoreQuantity

 

Numeric

9 (20,5)

 

 

 

 

CountedQuantity

 

Numeric

9 (20,5)

 

 

 

 

DifferenceQuantity

 

Numeric

9 (20,5)

 

 

 

Objects that vwAnalytics_MerchandiseInventoryCount depends on

 

Database Object

Object Type

Description

Dep Level

CfgSiteInformation table

CfgSiteInformation

Table

Stores the site information. Enterprise always has the site id as 1. System Table Warning : Should not be modified directly

1

InvInventoryCount table

InvInventoryCount

Table

Stores the master data for the Inventory counting

1

InvInventoryCountDetail table

InvInventoryCountDetail

Table

Stores the details counting data for the inventory

1

InvMerchandiseHierarchy table

InvMerchandiseHierarchy

Table

Header table for saving the merchandise Hierarch details.

1

InvMerchandiseHierarchyDetail table

InvMerchandiseHierarchyDetail

Table

Detail table for saving the merchandise Hierarch tree details.

1

InvProduct table

InvProduct

Table

Stores the product related details.

1

InvProductMerchandiseHierarchy table

InvProductMerchandiseHierarchy

Table

Stores the values related to a defined Merchandise hirarchy for a product

1

InvWarehouse table

InvWarehouse

Table

Defines a list of all warehouses defined in the system.

1

RtlStore table

RtlStore

Table

Contains the details of Stores defined in the system.

1

View Definition

CREATE VIEW [dbo].[vwAnalytics_MerchandiseInventoryCount]

AS

SELECT     HM.Description AS Hierarchy, HD.Name AS HierarchyNode, Prod.Description AS Product, W.Description AS Warehouse, IIC.CountingDate, IICD.StartingCount,

                     IICD.InStoreQuantity, IICD.CountedQuantity, IICD.DifferenceQuantity

FROM         dbo.InvInventoryCountDetail AS IICD INNER JOIN

                     dbo.InvInventoryCount AS IIC ON IICD.InventoryCountKey = IIC.InventoryCountKey INNER JOIN

                     dbo.InvProductMerchandiseHierarchy AS IPMH ON IICD.ProductKey = IPMH.ProductKey INNER JOIN

                     dbo.InvMerchandiseHierarchyDetail AS HD ON IPMH.HierarchyDetailKey = HD.HierarchyDetailKey AND IPMH.HierarchyKey = HD.HierarchyKey INNER JOIN

                     dbo.InvMerchandiseHierarchy AS HM ON HD.HierarchyKey = HM.HierarchyKey INNER JOIN

                     dbo.InvProduct AS Prod ON IICD.ProductKey = Prod.ProductKey INNER JOIN

                     dbo.InvWarehouse AS W ON IICD.WarehouseKey = W.WarehouseKey INNER JOIN

                     dbo.RtlStore AS Store ON W.WarehouseKey = Store.WarehouseKey INNER JOIN

                         (SELECT     TOP (1) SiteId

                          FROM          dbo.CfgSiteInformation) AS T5 ON 1 = 1 LEFT OUTER JOIN

                     dbo.RtlStore AS T6 ON T5.SiteId = T6.SiteId

WHERE     (Store.StoreKey = CASE WHEN T5.SiteId = 1 THEN Store.StoreKey ELSE T6.StoreKey END)

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.