GetCompanyDateTime User Defined Function

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > User Defined Functions >

GetCompanyDateTime 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

GetCompanyDateTime User Defined Function

Collapse All Expand All

iVend Database Database : GetCompanyDateTime User Defined Function

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

 

DBTimeStamp

4

Objects that depend on GetCompanyDateTime

 

Database Object

Object Type

Description

Dep Level

AssignTill procedure

AssignTill

Stored Procedure

Assigns a Till to the selected POS

1

BatchLocationQuantityUpdates procedure

BatchLocationQuantityUpdates

Stored Procedure

Used in replication to update the Batch quantities

1

BatchQuantityUpdates procedure

BatchQuantityUpdates

Stored Procedure

 

1

BreakBuildKit procedure

BreakBuildKit

Stored Procedure

 

1

CancelStockTransfer procedure

CancelStockTransfer

Stored Procedure

 

1

CustomeLabelReport procedure

CustomeLabelReport

Stored Procedure

 

2

DataNotification procedure

DataNotification

Stored Procedure

 

2

ExecuteInventoryItemLogUpdate procedure

ExecuteInventoryItemLogUpdate

Stored Procedure

 

2

GenerateLabelData procedure

GenerateLabelData

Stored Procedure

Generates label data depending on the parameter specified

1

GetInventoryItemForStockCount procedure

GetInventoryItemForStockCount

Stored Procedure

 

1

GetMobileReplicationData procedure

GetMobileReplicationData

Stored Procedure

 

1

GetNextDocumentNumberForPOS procedure

GetNextDocumentNumberForPOS

Stored Procedure

Generates the next Transaction Number depending on the Parameters provided

1

GetValidPromotionsForProduct procedure

GetValidPromotionsForProduct

Stored Procedure

 

1

InventoryItemQuantityUpdates procedure

InventoryItemQuantityUpdates

Stored Procedure

 

1

InventoryItemSerialStatusUpdates procedure

InventoryItemSerialStatusUpdates

Stored Procedure

 

1

InvWarehouseInventoryLocation procedure

InvWarehouseInventoryLocation

Stored Procedure

 

1

LogAuditInformation procedure

LogAuditInformation

Stored Procedure

 

1

Loy_GetMonthlyPointSummary procedure

Loy_GetMonthlyPointSummary

Stored Procedure

 

1

RemoveTill procedure

RemoveTill

Stored Procedure

Removes a Till from the selected POS

1

TrgSBOBatchUpdate trigger

TrgSBOBatchUpdate

Trigger

Handles updates made to Batch table from ERP system (Business One in this case)

2

TrgSBOInventoryUpdate trigger

TrgSBOInventoryUpdate

Trigger

Handles updates made to item inventory in the ERP system (Business One in this case)

1

TrxCompleteTransactionUpdates procedure

TrxCompleteTransactionUpdates

Stored Procedure

 

2

TrxInventoryUpdateBatchNumber procedure

TrxInventoryUpdateBatchNumber

Stored Procedure

 

1

TrxInventoryUpdateLaybyCancellationItem procedure

TrxInventoryUpdateLaybyCancellationItem

Stored Procedure

 

1

TrxInventoryUpdateLaybyItem procedure

TrxInventoryUpdateLaybyItem

Stored Procedure

 

1

TrxInventoryUpdateOrder procedure

TrxInventoryUpdateOrder

Stored Procedure

Handles updates related to Order item

1

TrxInventoryUpdatePaymentDiscount procedure

TrxInventoryUpdatePaymentDiscount

Stored Procedure

Handles updates related to sale item

1

TrxInventoryUpdateQuotation procedure

TrxInventoryUpdateQuotation

Stored Procedure

Handles updates related to Quotation item

1

TrxInventoryUpdateSaleDelivery procedure

TrxInventoryUpdateSaleDelivery

Stored Procedure

Handles updates related to delivery of a Sale item

1

TrxInventoryUpdateSaleItem procedure

TrxInventoryUpdateSaleItem

Stored Procedure

Handles updates related to sale item

1

TrxInventoryUpdatesSaleRefund procedure

TrxInventoryUpdatesSaleRefund

Stored Procedure

Handles updates related to On Account payments

1

TrxUpdateCustomerBalance procedure

TrxUpdateCustomerBalance

Stored Procedure

 

1

UpdateTillAmounts procedure

UpdateTillAmounts

Stored Procedure

Handles updates to Till once payment against a transaction has been taken

1

UseDrawer procedure

UseDrawer

Stored Procedure

Creates a valid Till User session depending on the Cash drawer selected by the user

1

uspGetItemPrice procedure

uspGetItemPrice

Stored Procedure

 

1

uspGetItemSpecialPrice procedure

uspGetItemSpecialPrice

Stored Procedure

Determines the price of the Product for the customer specified and other parameters

1

vw_ProductCost view

vw_ProductCost

View

 

1

ZTapeReport procedure

ZTapeReport

Stored Procedure

 

1

Objects that GetCompanyDateTime depends on

 

Database Object

Object Type

Description

Dep Level

CfgEnterprise table

CfgEnterprise

Table

Stores the basic configuration entries for the system . These settings are mandatory for the system to work properly.

1

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

Procedure Source Code

CREATE FUNCTION [dbo].[GetCompanyDateTime]()

RETURNS DATETIME

AS

BEGIN

DECLARE @returnDate DATETIME

DECLARE @TimeZoneOffSetInMinutes DECIMAL(20,5)

IF EXISTS(SELECT * FROM CfgSiteInformation WHERE ISNULL(SiteId,0) > 1)

BEGIN

RETURN GetDate()

END

SET @TimeZoneOffSetInMinutes = 0

SELECT @TimeZoneOffSetInMinutes = CompanyTimeZoneOffSetInMinutes FROM dbo.CfgEnterprise

IF(ISNULL(@TimeZoneOffSetInMinutes, 0) = 0)

SET @returnDate = getdate();

ELSE

SELECT @returnDate = DATEADD(minute,@TimeZoneOffSetInMinutes,GetUTCDate())

RETURN @returnDate;

END

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.