CREATE OR REPLACE FUNCTION core.is_cash_equivalent(_account_id bigint)
RETURNS boolean
LANGUAGE plpgsql
AS $function$
BEGIN
IF EXISTS
(
SELECT 1 FROM core.accounts WHERE account_master_id IN(10101, 10102)
AND account_id=$1
) THEN
RETURN true;
END IF;
RETURN false;
END
$function$