The field level help for last purchase price seems to indicate it should do this automatically based on the last "positive-inventory" transaction. If you have Multiple-Location inventory setup, then it should be any transaction for any location, if its unchecked it'll update based on the transaction location. I could see it being 0 if the location its going to doesn't have any transactions (seems unlikely?).