סימן קו סעיף ד
וְכֵן מִי שֶׁצָּרִיךְ לִקְנֹת יַיִן בְּעֵת הַבָּצִיר, שֶׁיְהֵא לוֹ לְצָרְכֵי בֵּיתוֹ לִשְׁתֹּת כָּל הַשָּׁנָה וְאַחַר כָּךְ יִתְיַקֵּר הַיַּיִן מֻתָּר לוֹ לִקְנֹת בְּחֹל הַמּוֹעֵד, אֲבָל לְמַשָּׂא וּמַתָּן אָסוּר לִקְנֹת.
If you need to purchase wine at the time of vintage, for the needs of your household for the entire year, because later the price of wine will go up, you are allowed to buy it on Chol Hamoed,8You may not purchase more than one year’s supply because it can be purchased again the following year. (Beis Yosef, Bach, Mishnah Berurah 539:31) but it is forbidden to buy it for business purposes.9See Shulchan Aruch and Ramah 539:9. Eliyahu Rabbah rules that buying wine in order to profit is permitted, and only buying large quantities for your own use is prohibited because it is an unnecessary bother. See Biur Halachah who says not to protest against those who rely on this opinion.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)