Accounts receivable in foreign currency bug

This is the same problem as in All sales invoices marked overdue w/ double amount (Paid Cloud Edition) - #5 by whereskarlo We face the same issue. It is some type of bug.