pears.rejectstate

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

COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."rejectstate" IS 
{CREATE FUNCTION rejectstate 
 
/* Application Maintained Function / Procedure - DO NOT EDIT*/
 
(IN sstatuscode CHAR(1))
RETURNS CHAR(1)
BEGIN
  DECLARE rejcode CHAR(1);
  SELECT rejectstatus INTO rejcode FROM STATUS
    WHERE STATUS=sstatuscode AND "type"='R';
  IF isnull(rejcode,'')='' THEN
    SET rejcode='Y'
  END IF
  ;
  RETURN(rejcode)
END
}
  • database/procedures/pears_rejectstate.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1