adding flash.alert when there are errors with any employee
update method sum for items purchases that was deprecated