Expense Included in Valuation

In purchase invoice the amount for ‘Expenses Included in valuation’ is deducted from the stock in hand amount (the basic amount). Why is this so? Can someone explain how this works or what I’m doing wrong?