Damaged Products

Hello All, please can someone put me through on how to account for damaged products on the system which affects the quantity.

You can start with that tutorial to get the idea and modify it for your specific needs.