|
<< Click to Display Table of Contents >> Navigation: iVend Database Database > User Defined Functions > GetCompanyDateTime User Defined Function |
Navigation: iVend Database Database > User Defined Functions >
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 |
|
Ansi Nulls |
|
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 |
|
Stored Procedure |
Assigns a Till to the selected POS |
1 |
|
|
Stored Procedure |
Used in replication to update the Batch quantities |
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
2 |
|
|
Stored Procedure |
|
2 |
|
|
Stored Procedure |
|
2 |
|
|
Stored Procedure |
Generates label data depending on the parameter specified |
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
Generates the next Transaction Number depending on the Parameters provided |
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
Removes a Till from the selected POS |
1 |
|
|
Trigger |
Handles updates made to Batch table from ERP system (Business One in this case) |
2 |
|
|
Trigger |
Handles updates made to item inventory in the ERP system (Business One in this case) |
1 |
|
|
Stored Procedure |
|
2 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
Handles updates related to Order item |
1 |
|
|
Stored Procedure |
Handles updates related to sale item |
1 |
|
|
Stored Procedure |
Handles updates related to Quotation item |
1 |
|
|
Stored Procedure |
Handles updates related to delivery of a Sale item |
1 |
|
|
Stored Procedure |
Handles updates related to sale item |
1 |
|
|
Stored Procedure |
Handles updates related to On Account payments |
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
Handles updates to Till once payment against a transaction has been taken |
1 |
|
|
Stored Procedure |
Creates a valid Till User session depending on the Cash drawer selected by the user |
1 |
|
|
Stored Procedure |
|
1 |
|
|
Stored Procedure |
Determines the price of the Product for the customer specified and other parameters |
1 |
|
|
View |
|
1 |
|
|
Stored Procedure |
|
1 |
Objects that GetCompanyDateTime depends on
|
Database Object |
Object Type |
Description |
Dep Level |
|
Table |
Stores the basic configuration entries for the system . These settings are mandatory for the system to work properly. |
1 |
|
|
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
© 2019 All Rights Reserved.
Send comments on this topic.