Payment in Currency & Transfer in Currency registered wrong in accouting

when make purchase & payment or transfer in currency let say 1000 USD = 19000 EGP
when transfer into accounting the result
purchases account 19000 which is correct
cash account 1000 which it should 19000
so the only correct is transferring the purchase value but in bank transfer or payment in currency it affect the account ledger by 1000 not the equivalent EGP considering that the base currency is EGP so everyting in accounting module should be in EGP equivalent
Dolibarr 15.0.2