Updated purchasing.cpp to compile again.