fix get_server_fields in stock_entry.js