Dear Sir/Madam, I wrote a program to auto post receipt voucher on saving sales voucher. while posting in receipt voucher it is taking Base Currency correctly but ignores foreign currency due to that the party ledger still shows a debit balance despite customer paid it in foreign currency how to overcome this problem. i am uploading the code snippet demo company data and screen shots of the problem