Ok, I think I get what you mean ! According to my test case :
- I have the following payment line in Payments tabs of invoice (see attached print screen "print1.png") before your patch.
- After your patch, I have what you see in the "print2.png"
What I deduce here is that all credit / debit amount are correct in both cases which is the most important ! Then, I think adding the amount currency and the currency on the line is correct also, and this wasn't the case before your patch : good !
I also check the residual amount function of the invoice, and this is still correct.
I found the problem here, in the line amount. You don't take the right currency rate...
Example:
On the 13.09.2009, you fully pay the invoice for 232.68 CHF, which mean a write-off => ok. But then you don't take the right rating for this write-off :
Hello vra,
Ok, I think I get what you mean ! According to my test case :
- I have the following payment line in Payments tabs of invoice (see attached print screen "print1.png") before your patch.
- After your patch, I have what you see in the "print2.png"
What I deduce here is that all credit / debit amount are correct in both cases which is the most important ! Then, I think adding the amount currency and the currency on the line is correct also, and this wasn't the case before your patch : good !
I also check the residual amount function of the invoice, and this is still correct.
I found the problem here, in the line amount. You don't take the right currency rate...
Example:
On the 13.09.2009, you fully pay the invoice for 232.68 CHF, which mean a write-off => ok. But then you don't take the right rating for this write-off :
- 232.68/155.12 = 1.5
- 8.9 / 13.59 = 0.65
Hope it helps !
Regards,