Payment in different currency

how to make a partial payment in USD against sales invoice made on EGP , when I make it this message appears " the difference amount must be zero"

Do you have a separate account in USD to receive the amount? Then you can give all the details including the exchange rate. If there is a difference coz of exchange rate, you can set that difference into another account under deduction or loss section.