In the fresh produce wholesale market, the market price is determined by the total demand and supply. The price is stochastic, and either wholesaler or retailer has few influence on it. In the wholesaler's inventory decision, the price's uncertainty plays an important role as well as the uncertainty from the demand side: The wholesaler makes his decision based on the retailer's ordering, which is influenced by the stochastic market price and the distribution of the consumer's demand. In addition, when at the wholesale stage, the products show a similar quality of similar appearance. With more efforts being input, the wholesaler could detect and record more additional information than that reflected from the appearance. Based on this, he can classify the quality into different levels. No experience shows how the wholesaler could use the underlying quality information and how much this information could improve his profit. To describe and explore this problem, a bilevel dynamic programming approach is employed. We evaluate different strategies of using the underlying information, show the features of the optimal policy, develop heuristics, and discuss the influence of factors such as quality and market price. We also develop the managerial principles for the practical use.