UFN_AMPROIMPORT_DATEINOPENFISCALPERIOD
Returns true if the given date is in an open fiscal period.
Return
Return Type |
---|
bit |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@DATE | datetime | IN |
Definition
Copy
create function dbo.UFN_AMPROIMPORT_DATEINOPENFISCALPERIOD(@DATE as datetime)
returns bit
as
begin
if exists(select ID from dbo.GLFISCALPERIOD where STARTDATE <= @DATE and ENDDATE >= @DATE and CLOSED = 0)
return 1;
return 0;
end