added reduce quantity in itemrepository