Handle count_on_hand update properly based on changes