...
And then it was written off by Average Cost PriceAverage Cost Price (since the Inventory Write Off document automatically picking the average cost price from purchase documents):
...
2. Check the transactions for Inventory Write Off:
3. Enter reversal Other Expense document for the same GL Accounts:
...