====== pears.CompanySalesStatusChangeAllowed ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Original SQL =====
create function "pears"."CompanySalesStatusChangeAllowed"(
in "compid" char(20),in "oldstatus" char(20),in "newstatus" char(20) )
returns long varchar
-- If change is disallowed you must set status back to oldstatus before returning an error message
begin
declare "rv" long varchar;
set "rv" = '';
return("rv")
end