State, county, district, precinct and city officers must not be purchasers at any sale nor vendors at any purchase made by them in their official capacity.