A Belfast pharmacist who stole prescription drugs has been ordered to serve 180 hours community service.