====== pears.NetClientShiftCancelReasons ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Original SQL ===== COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."NetClientShiftCancelReasons" IS {create function pears."NetClientShiftCancelReasons"( in "WebUser" char(20),in "NeedsRefill" integer default 0 ) returns long varchar -- 20111012 create ComboBox option list for cancel reasons on Client -> Current Shift Status status box -- 20111128 modify to allow filter on reject or cancel reasons where refill=true -- 20130213 created from GenevaNetClientShiftCancelReasons begin declare "rv" long varchar; select "list"("string"('' order by "SortOrder" asc) into "rv" from "TempShiftCancelReason" where "PublishToWeb" = '1' and "isnull"("Refill",0) >= "NeedsRefill"; return "rv" end }