A study of the effect of crystal-field anisotropy on magnetically ordered systems