usp_InvInventoryItem_Condition User Defined Function

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > User Defined Functions >

usp_InvInventoryItem_Condition User Defined Function

Navigation: iVend Database Database > User Defined Functions >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

usp_InvInventoryItem_Condition User Defined Function

Collapse All Expand All

iVend Database Database : usp_InvInventoryItem_Condition User Defined Function

Properties

Creation Date

12/14/2015 3:17 PM

Encrypted

dbimages_boolean-false

Ansi Nulls

dbimages_boolean-true

Parameters

Parameter

Direction

Description

Data Type

Size

@RETURN_VALUE

Return Value

 

VarWChar

1073741823

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

RtlStore table

RtlStore

Table

Contains the details of Stores defined in the system.

1

Procedure Source Code

CREATE FUNCTION [dbo].[usp_InvInventoryItem_Condition]()

RETURNS nvarchar(max)

AS

BEGIN

            -- Declare the return variable here

            DECLARE @condition nvarchar(max)

            -- Add the T-SQL statements to compute the return value here

            Select   @condition = WarehouseKey From dbo.RtlStore Inner Join CfgSiteInformation On RtlStore.SiteId = CfgSiteInformation.SiteId

            -- Return the result of the function

            RETURN 'dbo.InvInventoryItem.WarehouseKey =' + @condition

END

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.