Agreements are determined on the basis of the currency code on the sales order. Specify which currency the agreement was set up in. You can therefore set up agreements for the same customer/supplier in different currencies. It is the currency code on the current order that determines which agreement the system uses.