I can share some tips on how you can record a replacement for the damaged item in QuickBooks Online (QBO).
You can set up an expense account to track the amount of damaged inventory items. Then, link them to a service item.
To start with, let's set up a bad debts expense account:
Go to Accounting from the left menu and choose Chart of Accounts.
Click New.
Hit Expenses as the AccountType.
Choose Bad debts as the Detail Type.
Enter “Bad debts” in the Name field.
Click Save and Close.
Next up, you need to create a service to link this expense account. Here's how:
Highlight the Sales tab.
Choose Products and Services.
Press New.
Tap Service.
Enter a name.
Change the Income account to the expense account you created above.
Click Save and close.
Once done, you'll have to create a sales receipt with the service you've just created. Make sure to add enter the correct amount of the damaged inventory item. This way, QuickBooks will recognize the amount as a loss for your business.