סימן נא סעיף יב
אָכַל פֵּרוֹת שֶׁבְּרָכָה אַחֲרוֹנָה שֶׁלָּהֶם בְּרָכָה מֵעֵין שָׁלֹשׁ, וְגַם פֵּרוֹת הָעֵץ שֶׁבְּרָכָה אַחֲרוֹנָה שֶׁלָּהֶן הוּא בּוֹרֵא נְפָשׁוֹת, מְבָרֵךְ בְּרָכָה מֵעֵין שָׁלֹשׁ. וְכֵיוָן שֶׁהוּא מַזְכִּיר בָּהֶם פְּרִי עֵץ, נִפְטָרִים בָּזֶה כָּל פְּרִי עֵץ שֶׁאָכַל. אֲבָל אִם נִתְחַיֵּב בִּרְכַּת בּוֹרֵא נְפָשׁוֹת עַל מִין אַחֵר, אֵינוֹ נִפְטָר בִּבְרָכָה מֵעֵין שָׁלֹשׁ, וִיבָרֵךְ תְּחִלָה בִּרְכַּת מֵעֵין שָׁלֹשׁ וְאַחַר כָּךְ בּוֹרֵא נְפָשׁוֹת.
If you have eaten fruit, whose after-berachah is the "three-faceted berachah," and you have also eaten some fruit whose after-berachah is Borei nefashos, You should recite the "three-faceted berachah," and since you mention in it "the fruit of the tree" you exempt with it all other kinds of fruit you have eaten. However, if you had to say the berachah, Borei nefashos, for any other kind of food you ate [not fruit of the tree], then you are not exempt by the "three-faceted berachah." You should first say the "three-faceted berachah," and afterwards Borei nefashos.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)