The Average Cost and/or Last Cost fields are updated from the Purchase Transaction line item Cost by default.
In order to include/distribute the Shipping cost when calculating the Average Cost or Last Cost, the Distribute Shipping Update Parameter must be set to a method other than None.
See:
Purchase Manager - Parameters - Update Parameters
Purchase Manager Contents