CREATE OR REPLACE FUNCTION depodecompbte(character varying) RETURNS smallint
    AS $_$select op_deposito from operaciones where bpchareq(op_compbte,$1) order by op_id limit 1;$_$
    LANGUAGE sql;
