Annotation: core.is_cash_account_id

CREATE OR REPLACE FUNCTION core.is_cash_account_id(_account_id bigint)
RETURNS boolean

Information: core.is_cash_account_id

Schema core
Function Name is_cash_account_id
Arguments _account_id bigint
Owner postgres
Result Type boolean
Description

Implementation: core.is_cash_account_id

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