Closed LGodoo closed 3 months ago
I am facing the same issue in version 15.
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
We have the same problem i PLN I have check the code and i think, tat problem is in _display_outstanding_lines_sql_q1 method.
In line 38 system check only balance >= 0
But in our case then account.move.line has ballance (in system currency) equal 0 and ammount_currency have proper value - positive or negative. So in my opinion proper case condition must be:
CASE WHEN l.balance > 0.0 or (l.balance = 0.0 and l.amount_currency > 0.0) THEN l.amount_currency - sum(coalesce(pd.debit_amount_currency, 0.0)) ELSE l.amount_currency + sum(coalesce(pc.credit_amount_currency, 0.0)) END AS open_amount_currency,
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Module
partner_statement
Describe the bug
A customer we deal with in Euro. Our reporting/company currency is USD. If we issue invoices in Euro and record payment in Euro a realised forex is accounted for.
If we generate the receivable statement it is in Euro but it includes the forex gain/loss that was booked in our ledger in USD with the euro sign in front.
As a result the balance in the statement is not zero and the customer/partner will wander what this small amounts are. The partner should not see forex gain/losses in his Statement. They do not consern them.
To Reproduce
Affected versions: 14.0
Steps to reproduce the behavior:
Expected behavior Expected to see the statement in Euro with 2 entries: