This is a The SpongeBob Chronicles episode.
Old Man Jenkins has a hard time opening the ketchup bottle, and accidently elbows Mr. Krabs in the face. Jenkins becomes very popular, while Mr. Krabs goes bankrupt, which he is VERY disappointed about. SpongeBob and Squidward get jobs at a hardware store, having no idea how to do anything with hardware. Old Man Jenkins finally tells the truth, getting everyone's jobs back. Mr. Krabs is still mad about losing his money, though.