Old purchase rate fetching

Last Purchase Rate should display rates from Divs and other companies as well. in purchase order how it will impliment