database:functions:pears_selfbilldescriptionfortimesheetline



pears.SelfbillDescriptionForTimesheetLine

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

CREATE FUNCTION "pears"."SelfbillDescriptionForTimesheetLine"( 
  IN "tslineid" CHAR(20),IN "suppliercode" CHAR(12) ) 
RETURNS long VARCHAR
BEGIN
  DECLARE "rv" long VARCHAR;
  SET "rv" = NULL;
  SELECT "string"("person"."name",' - ',"temppayband"."description",': ',"isnull"("temptimesheetline"."description","temppayband"."unit"))
    INTO "rv"
    FROM "temptimesheetline" KEY JOIN("temppayband",("temptimesheet" KEY JOIN "person"))
    WHERE "temptimesheetline"."temptimesheetlineid" = "tslineid";
  RETURN("rv")
END
  • database/functions/pears_selfbilldescriptionfortimesheetline.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1