added code for saving stock level in pharmacy