The episode is called "Something Smells"; it is paired with the episode "Bossy Boots".
Something Smells is the one where SpongeBob wants to make a sundae, but he's out of all of the "normal" sundae ingredients, so he makes this evil concoction of ketchup, onions, and a peanut plant (pot, soil, and all), and eats it. He then subsequently knocks everybody out with his rancid breath.
Patrick plays a significant role; even Squidward has something (not-so-nice) to say.
Bossy Boots is the one where Mr. Krabs' daughter Pearl gets a summer job at the Krusty Krab, renames it the "Kuddly Krab", eliminates Krabby Patties (and all other fried foods for that matter) from the menu (the menu now consists of just iced tea and salad), and then tries to get fired - SpongeBob ends up with this unenviable task.