Annotation: transactions.is_normally_debit

CREATE OR REPLACE FUNCTION transactions.is_normally_debit(_account_id bigint)
RETURNS boolean

Information: transactions.is_normally_debit

Schema transactions
Function Name is_normally_debit
Arguments _account_id bigint
Owner postgres
Result Type boolean
Description

Implementation: transactions.is_normally_debit

CREATE OR REPLACE FUNCTION transactions.is_normally_debit(_account_id bigint)
 RETURNS boolean
 LANGUAGE plpgsql
AS $function$
BEGIN
    RETURN
        core.account_masters.normally_debit
    FROM  core.accounts
    INNER JOIN core.account_masters
    ON core.accounts.account_master_id = core.account_masters.account_master_id
    WHERE account_id = $1;
END
$function$