Item Charges & Expected Cost

Hi all,
Was wondering if anyone had any luck making item charges hit expected cost at receipt like inventory items do. Seems like this is a common need for freight, etc… Additionally, if the charge was posted after the item was sold, looking for it to hit COGS in the sold period as opposed to the period the PO was posted. Thanks!