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

[FIX] account: use max_date instead of create_date for aged reports #16016

Closed
wants to merge 2 commits into from

Conversation

smetl
Copy link
Contributor

@smetl smetl commented Mar 23, 2017

Aged receivable/payable uses create_date of account_partial_reconcile to decide if a partner needs to be shown at a given date or note.
It can be problematic in some case where reconciliation is done at date X and account.move date is Y, as this will be confusing in the aged receivable/payable report.

For example, an invoice dated 30-12-2016 and due the same day but paid the 01-01-2017.
The customer appeared on the aged receivable in 2017 instead of the last financial year as 31-01-2016.

-opw:
https://www.odoo.com/web#id=31844&view_type=form&model=project.task&action=333&active_id=967&menu_id=4720

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@smetl smetl added the RD research & development, internal work label Mar 23, 2017
@smetl smetl requested a review from qdp-odoo March 23, 2017 10:26
Aged receivable/payable uses create_date of account_partial_reconcile to decide if a partner needs to be shown at a given date or note.
It can be problematic in some case where reconciliation is done at date X and account.move date is Y, as this will be confusing in the aged receivable/payable report.

For example, an invoice dated 30-12-2016 and due the same day but paid the 01-01-2017.
The customer appeared on the aged receivable in 2017 instead of the last financial year as 31-01-2016.

-opw: 31844
Copy link
Contributor

@qdp-odoo qdp-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

important part missing in account/report/account_aged_partner_balance.py, _get_partner_move_lines()

qdp-odoo pushed a commit that referenced this pull request Apr 11, 2017
Aged receivable/payable was using create_date of account_partial_reconcile to decide if a partner needs to be shown at a given date or not.
While it was not wrong, our decision to use the create_date was based on the fact that we wanted to be able to render the exact same report we had at a past date, so a the date of the reconciliation would be important... but since the unreconciliation was not forbidden it wasn't really the case.
Moreover, in some case where reconciliation is not at the same time the payment is recorded, this choice
 - was confusing people about results given by the aged receivable/payable report.
 - was confusing people about the 'Paid on...' line in the payment widget on the invoice, as they would see there a date unused by the system (although they would have liked too)

This was discussed in opw 31844. Was PR #16016
@qdp-odoo
Copy link
Contributor

landed on master at revision a8994b4

@qdp-odoo qdp-odoo closed this Apr 11, 2017
@smetl smetl deleted the master-aged-reports-las branch April 13, 2017 11:31
ddufresne pushed a commit to ddufresne/odoo that referenced this pull request Mar 14, 2018
Aged receivable/payable was using create_date of account_partial_reconcile to decide if a partner needs to be shown at a given date or not.
While it was not wrong, our decision to use the create_date was based on the fact that we wanted to be able to render the exact same report we had at a past date, so a the date of the reconciliation would be important... but since the unreconciliation was not forbidden it wasn't really the case.
Moreover, in some case where reconciliation is not at the same time the payment is recorded, this choice
 - was confusing people about results given by the aged receivable/payable report.
 - was confusing people about the 'Paid on...' line in the payment widget on the invoice, as they would see there a date unused by the system (although they would have liked too)

This was discussed in opw 31844. Was PR odoo#16016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants