Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.NetClientShiftCancelReasons ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Original SQL ===== <code sql> 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"('<option value="',"TempShiftCancelReasonID",'">',"Name"),'</option>' order by "SortOrder" asc) into "rv" from "TempShiftCancelReason" where "PublishToWeb" = '1' and "isnull"("Refill",0) >= "NeedsRefill"; return "rv" end </code> database/functions/pears_netclientshiftcancelreasons.txt Last modified: 2026/08/07 19:24by 127.0.0.1