Handled properly, the spoilage gets deducted only once. For tax purposes it does not matter (much) whether it is accounted for separately or just adjusted through COGS. However, for accounting purposes it is desirable to separately account for spoilage so the owner or management knows how much food is being thrown away (or stolen by employees). It can make a difference in actions taken by management to control costs.