Lower of Cost or Market
It may be necessary to write down materials that your company sells in cases where it is unlikely that the materials can be sold at the current price.

When the demand for a material diminishes because it is no longer technically state of the art, the material can only be sold at a loss against the material price.
The minimum can be updated in the price table as the lowest price.
You have implemented Inventory Accounting.