Simple code to choose list price and supplier

is there a simple code or technique that will automatically choose the item list price rate and the winner supplier from Supplier quotation?thanks in advance