Same thing you do when you spend all your money, go broke or earn more. Kind of a dumb question when you think about it.
Barter is great as long as both parties can agree on a medium of exchange. Problem comes in when one party doesn't want what the other has to offer. That's where currency comes into play.