The labor that went into the unsold inventory is not included in the cost of goods sold section. And yet, they are not a fixed expense either, so the labor that went into unsold goods is not included at all in your current P&L statement.
Instead, you’ll include it under the cost of goods sold when that inventory is actually sold, and before then, it’ll be tracked on your balance sheet.