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