In this answer which I have got from Meritnation, it is written that purchase of own currency is a credit as it leads to OUTFLOW OF FOREIGN EXCHANGE
However, isnt inflow of foreign exchange a credit and outflow of foreign exchange a debit???