auto update stock on create