redid condition for updating stock on lineitem