UFN_ACCOUNTCODE_GETNORBALBALANCECODE
This function returns normal balance code.
Return
| Return Type |
|---|
| nvarchar(10) |
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @ID | int | IN |
Definition
Copy
create function dbo.UFN_ACCOUNTCODE_GETNORBALBALANCECODE(@ID integer)
returns nvarchar(10)
with execute as caller
as begin
declare @NORMALBALANCECODE int;
if @ID = 1 or @ID = 5
set @NORMALBALANCECODE = 1
else
set @NORMALBALANCECODE = 2
return @NORMALBALANCECODE;
end