====== pears.DescriptionForStagedInvoice ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Original SQL ===== create function "pears"."DescriptionForStagedInvoice"( in "spaymentid" char(20) ) returns long varchar begin declare "rv" long varchar; set "rv" = null; select "string"("person"."name",' - ',"stagedpayments"."description") into "rv" from "stagedpayments" key join "placement" key join "employment" key join "person" where "stagedpaymentid" = "spaymentid"; return("rv") end