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 Discount when calculating the Average Cost or Last Cost, the Distribute Discount Update Parameter must be set to a method other than None.
See:
Purchase Manager - Parameters - Update Parameters
Purchase Manager Contents