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.AccordPayrollCode ====== <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"."AccordPayrollCode"( in "PersID" char(20) ) returns varchar(6) begin -- Payroll codes must exist in Accord. declare "rv" varchar(6); declare "payfreq" integer; select "payfrequency" into "payfreq" from "pay_employee" where "personid" = "PersID"; if "payfreq" = 12 then set "rv" = 'MONTH' else set "rv" = 'WEEKLY' end if; return "rv" end </code> database/functions/pears_accordpayrollcode.txt Last modified: 2026/08/07 19:24by 127.0.0.1