GetDeliveryPackages Stored Procedure

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Stored Procedures >

GetDeliveryPackages Stored Procedure

Navigation: iVend Database Database > Stored Procedures >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

GetDeliveryPackages Stored Procedure

Collapse All Expand All

iVend Database Database : GetDeliveryPackages Stored Procedure

Properties

Creation Date

4/13/2015 12:00 PM

Encrypted

dbimages_boolean-false

Ansi Nulls

dbimages_boolean-true

Parameters

Parameter

Direction

Description

Data Type

Size

@RETURN_VALUE

Return Value

 

Integer

4

Objects that GetDeliveryPackages depends on

 

Database Object

Object Type

Description

Dep Level

InvProduct table

InvProduct

Table

Stores the product related details.

1

RtlStore table

RtlStore

Table

Contains the details of Stores defined in the system.

1

TrxDeliveryPackage table

TrxDeliveryPackage

Table

Stores the Delivery package information

1

TrxDeliveryPackageDetail table

TrxDeliveryPackageDetail

Table

Captures the delivery details of the package that is to be delivered from iVend Mobile POS.

1

TrxTransaction table

TrxTransaction

Table

The main table which defined the primary details concerned with every type of transaction.

1

Procedure Source Code

Create PROCEDURE [dbo].[GetDeliveryPackages]

AS

BEGIN

SET NOCOUNT ON

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

  /*Package*/

  Select A.*,B.TransactionId, C.Id AS 'StoreId', CAST(0 as bit) AS 'IsSelected' from TrxDeliveryPackage A

  INNER JOIN TrxTransaction B ON A.TransactionKey = B.TransactionKey

  INNER JOIN RtlStore C ON C.StoreKey = B.StoreKey

  WHERE A.Status = 0

  /*Package Details*/

SELECT A.*,B.Id AS 'ProductId' from TrxDeliveryPackageDetail A

INNER JOIN InvProduct B On A.ProductKey = B.ProductKey

INNER JOIN TrxDeliveryPackage C On C.DeliveryPackageKey = A.DeliveryPackageKey

WHERE C.Status = 0

SET TRANSACTION ISOLATION LEVEL READ COMMITTED

RETURN

END

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.