Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10] customer_outstanding_statement - Error on SQL #443

Closed
MarcoCalcagni opened this issue Jul 18, 2018 · 2 comments
Closed

[10] customer_outstanding_statement - Error on SQL #443

MarcoCalcagni opened this issue Jul 18, 2018 · 2 comments
Assignees

Comments

@MarcoCalcagni
Copy link
Contributor

Hi, i found an error on calculation of debit value.
If I have an invoice of 1000 and on this invoice I have 2 payment of 200 balance 600 the report will show import of document 2000 (because on the account_move_line there are more account_partial_reconcile record )
to fix I think to change
CASE WHEN (l.currency_id is not null AND l.amount_currency > 0.0) THEN sum(l.amount_currency) ELSE sum(l.debit) END as debit,
in
CASE WHEN (l.currency_id is not null AND l.amount_currency > 0.0) THEN avg(l.amount_currency) ELSE avg(l.debit) END as debit,

Marco
version 10 - module customer_outstanding_statement - repo account-financial-reporting
file customer_outstanding_statement.py

@gdgellatly
Copy link
Contributor

@As400it This can be closed

@MarcoCalcagni
Copy link
Contributor Author

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants