Issue #19351:use cohist_unitcost when returning inventory