pears.InvoiceFilenameInZip

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

Original SQL

CREATE FUNCTION "pears"."InvoiceFilenameInZip"( 
  IN "docid" CHAR(20) ) 
RETURNS long VARCHAR
BEGIN
  DECLARE "rv" long VARCHAR;
  SELECT "string"('Invoice_',"ourref") INTO "rv" FROM "iqacdocument" WHERE "documentid" = "docid";
  RETURN("rv")
END