UFN_GROUPSALESDEFAULT_GETMAXCAPACITY

Used to get the daily maximum capacity for group sales.

Return

Return Type
int

Definition

Copy


create function dbo.UFN_GROUPSALESDEFAULT_GETMAXCAPACITY()
returns int
as begin
    declare @MAXCAPACITY int;
    select top 1 @MAXCAPACITY = isnull(MAXIMUMCAPACITY, 0) from dbo.GROUPSALESDEFAULT;
    return @MAXCAPACITY;
end