UFN_ACCOUNTINGELEMENTID_MAPFROM_PROJECT_ATTACHMENTID
Maps a project attachment ID to the Accounting Element ID for record security.
Return
Return Type |
---|
uniqueidentifier |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ATTACHMENTID | uniqueidentifier | IN |
Definition
Copy
create function dbo.UFN_ACCOUNTINGELEMENTID_MAPFROM_PROJECT_ATTACHMENTID
(
@ATTACHMENTID uniqueidentifier
)
returns uniqueidentifier as
begin
declare @ID uniqueidentifier
select @ID = PROJECTID from dbo.PROJECTATTACHMENT where ID = @ATTACHMENTID
return @ID
end