====== 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