GetTransactionLinkDocument Stored Procedure

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Stored Procedures >

GetTransactionLinkDocument Stored Procedure

Navigation: iVend Database Database > Stored Procedures >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

GetTransactionLinkDocument Stored Procedure

Collapse All Expand All

iVend Database Database : GetTransactionLinkDocument Stored Procedure

Properties

Creation Date

6/20/2017 11:07 AM

Encrypted

dbimages_boolean-false

Ansi Nulls

dbimages_boolean-true

Parameters

Parameter

Direction

Description

Data Type

Size

@TransactionKey

In

 

VarChar

50

@RETURN_VALUE

Return Value

 

Integer

4

Objects that GetTransactionLinkDocument depends on

 

Database Object

Object Type

Description

Dep Level

PmtCurrency table

PmtCurrency

Table

Define a list of all currecies defined in the system.

1

RtlStore table

RtlStore

Table

Contains the details of Stores defined in the system.

1

TrxTransaction table

TrxTransaction

Table

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

1

TrxTransactionSaleItem table

TrxTransactionSaleItem

Table

Stores sale/refund/delivery items attached to a transaction

1

Procedure Source Code

Create PROCEDURE [dbo].[GetTransactionLinkDocument]

@TransactionKey varchar(50)

AS

BEGIN

Select Distinct TrxTransaction.TransactionKey,TransactionId,TransactionCustomerName as FirstName

,TrxTransaction.BusinessDate,ActualDate,RtlStore.Id,TrxTransaction.Total ,PmtCurrency.CultureInfo

from TrxTransaction join TrxTransactionSaleItem

on TrxTransaction.TransactionKey = TrxTransactionSaleItem.TransactionKey

join RtlStore on TrxTransaction.StoreKey = RtlStore.StoreKey

LEFT OUTER JOIN PmtCurrency On TrxTransaction.CurrencyKey = PmtCurrency.CurrencyKey

where TrxTransactionSaleItem.OriginalDocumentKey = @TransactionKey

END

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.