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.GetTimeSheetDescription ====== <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"."GetTimeSheetDescription"( /* Application Maintained Function / Procedure - DO NOT EDIT*/ in "usesecags" tinyint,in "persid" char(20),in "secagid" char(20),in "sdescrip" long varchar ) returns long varchar begin if "isnull"("usesecags",0) = 0 or "persid" is null then return "isnull"("sdescrip",'') end if; if "secagid" is null then select first "secondaryagencyid" into "secagid" from "pay_employee" where "personid" = "persid" end if; if "secagid" is not null then set "sdescrip" = "string"((select first "name" from "company" where "companyid" = "secagid"),' ',"sdescrip") end if; return "isnull"("sdescrip",'') end </code> database/functions/pears_gettimesheetdescription.txt Last modified: 2026/08/07 19:24by 127.0.0.1