723: IF ( l_bank_account_id IS NOT NULL ) AND ( p_customer_id IS NOT NULL ) THEN
724: -- Check whether the assignment exists already
725: SELECT count(*) INTO l_count FROM iby_fndcpt_payer_assgn_instr_v
726: WHERE cust_account_id = p_customer_id
727: AND bank_acct_num_hash1 = iby_security_pkg.get_hash(p_account_number, 'F')
728: AND bank_acct_num_hash2 = iby_security_pkg.get_hash(p_account_number, 'T')
729: AND branch_number = p_routing_number;
730:
731: IF(l_count = 0) THEN
724: -- Check whether the assignment exists already
725: SELECT count(*) INTO l_count FROM iby_fndcpt_payer_assgn_instr_v
726: WHERE cust_account_id = p_customer_id
727: AND bank_acct_num_hash1 = iby_security_pkg.get_hash(p_account_number, 'F')
728: AND bank_acct_num_hash2 = iby_security_pkg.get_hash(p_account_number, 'T')
729: AND branch_number = p_routing_number;
730:
731: IF(l_count = 0) THEN
732: SELECT party_id INTO l_party_id