update material quantity management