Before the inventory cost in the general ledger is updated, the inventory cost has to be recalculated based on the costing method defined in the product accounting tab. This is done by selecting Inventory > Costing > Compute Cost
When clicking Compute , the inventory cost will then be updated.