Stock should be carried at the lower of cost or net realisable value

How do I adjust the carrying cost of stocks that are damaged to a net realisable value below cost.

Use a journal entry to record the total increase decrease in value and make sure to set the Qty to Zero.