Hello Andrea,
In order to post FX Loss/Gain on partial payments, please activate the below configuration.
SPRO ->Financial Accounting (New) ->Financial Accounting Global Settings (New) ->Global Parameters for Company Code->Currencies ->Indicate Currency Differences for Partial Payments
For Customers, you can select DZ and for Vendors, you may have multiple but KZ, ZP.....etc.
Hope this helps