drop trigger if exists purch_bd_after_insert;
DELIMITER // 
create trigger purch_bd_after_insert after insert on dbr_purch_bd
    for each row begin
        call stock_io_act('purch', new.id, 0);
    end//
DELIMITER ;