If there are active purchase agreements for the price group/item combination, when the purchase line is entered, prices will be taken from the Price and Discounttables and not from the production cost in the inventory table. For more information, see the field in the form.