If an inventory journal is used to add inventory and the cost price of the new inventory is set to 0, then the items will be posted at the cost price on the inventory card (both in inventory and the general ledger).
If the cost price in the inventory journal is set to >0 then this will be the cost price used both in inventory and the general ledger.