While creating new purchase order, if you get error:-
Pending or posted invoice is exist for purchase order changing the currency or vendor is not allowed in ax 2012.
Go to Accounts Payable -- Inquiries -- History -- Invoice history and matching details
and delete all records from the list.