vwAnalytics_OpenStockTransferReceipt View

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Views >

vwAnalytics_OpenStockTransferReceipt View

Navigation: iVend Database Database > Views >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

vwAnalytics_OpenStockTransferReceipt View

Collapse All Expand All

iVend Database Database : vwAnalytics_OpenStockTransferReceipt 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

 

RequestNumber

 

VarWChar

20

 

 

 

 

FromWarehouse

 

VarWChar

100

dbimages_tick

 

 

 

ToWarehouse

 

VarWChar

100

dbimages_tick

 

 

 

ProductCode

 

VarWChar

20

 

 

 

 

Product

 

VarWChar

100

dbimages_tick

 

 

 

UOMQuantity

 

Numeric

9 (20,5)

dbimages_tick

 

 

 

UOMQuantityOpen

 

Numeric

9 (20,5)

dbimages_tick

 

 

 

UOMQuantityReceived

 

Numeric

9 (20,5)

dbimages_tick

 

 

 

UOMQuantityShipped

 

Numeric

9 (20,5)

dbimages_tick

 

 

 

ReceiptDate

 

DBTimeStamp

4

 

 

 

 

UOM

 

VarWChar

100

dbimages_tick

 

 

Objects that vwAnalytics_OpenStockTransferReceipt 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

InvProduct table

InvProduct

Table

Stores the product related details.

1

InvStockTransfer table

InvStockTransfer

Table

Stores stock transfer details

1

InvStockTransferDetail table

InvStockTransferDetail

Table

Detail table which stores the stock transfer detail information.

1

InvUOM table

InvUOM

Table

Master table for the Inv UOM

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_OpenStockTransferReceipt]

as

Select InvStockTransfer.RequestNumber,

FromWarehouse.Description as FromWarehouse,

ToWarehouse.Description as ToWarehouse,

   InvProduct.Id As ProductCode,

   InvStockTransferDetail.Description As Product,

   InvStockTransferDetail.UOMQuantity,

   InvStockTransferDetail.UOMQuantityOpen,

   InvStockTransferDetail.UOMQuantityReceived,

   InvStockTransferDetail.UOMQuantityShipped,

   InvStockTransfer.RequestedDate as ReceiptDate,

   InvUOM.Description as UOM

From InvStockTransfer

Inner Join InvStockTransferDetail On InvStockTransfer.StockTransferKey = InvStockTransferDetail.StockTransferKey

Inner Join InvProduct On InvStockTransferDetail.ProductKey = InvProduct.ProductKey

INNER JOIN InvWarehouse FromWarehouse ON InvStockTransfer.FromWarehouseKey = FromWarehouse.WarehouseKey

INNER JOIN InvWarehouse ToWarehouse ON InvStockTransfer.ToWarehouseKey = ToWarehouse.WarehouseKey

Left Outer JOIN InvUOM on InvStockTransferDetail.UOMKey=InvUOM.UOMKey

Inner JOin RtlStore As Store On FromWarehouse.WarehouseKey = Store.WarehouseKey

INNER JOIN (SELECT TOP 1 SiteId from CfgSiteInformation) As T5 on 1=1

LEFT OUTER JOIN RtlStore T6 ON T5.SiteId = t6.SiteId

WHERE  InvStockTransfer.Status = 0

AND 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.