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

[14.0][IMP] account_payment_order: Fix dates in payments #1328

Closed
wants to merge 1 commit into from

Conversation

Raul-S73
Copy link

@Raul-S73 Raul-S73 commented Aug 5, 2024

The date of payments is corrected because the date on which the payment order is confirmed is currently established
This means that payments are not grouped correctly.

Before:
image
image

With this changes:
image
image

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

This was changed on purpose on #1305 and #1311

@pedrobaeza pedrobaeza added this to the 14.0 milestone Aug 5, 2024
@Raul-S73
Copy link
Author

Raul-S73 commented Aug 5, 2024

@pedrobaeza
How are payments going to be grouped if the due date is always the date on which the collection order is confirmed?
If I want to have payments grouped by due date, how do I do it?

@pedrobaeza
Copy link
Member

You should change the grouping criteria in the other module then.

@pedrobaeza
Copy link
Member

Anyway, if I don't remember bad, the *_grouped_output module groups everything together without more criteria.

@Raul-S73 Raul-S73 force-pushed the 14.0-add-account_payment_order branch 2 times, most recently from 986c898 to d9220d4 Compare August 6, 2024 11:05
@Raul-S73 Raul-S73 force-pushed the 14.0-add-account_payment_order branch from d9220d4 to 8547710 Compare August 6, 2024 11:19
@Raul-S73
Copy link
Author

Raul-S73 commented Aug 6, 2024

@pedrobaeza

Hello again,
I have done this PR due to the needs of our clients.
When they place the payment order until now they were grouped by the due date, this way they had everything more under control. Now there is no possibility to group that way.

With these changes, it returns to grouping by due date, making the groupings in the payment order.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

It was incorrect before, not following the accrual principle. If your customer wants such grouping, I think you must change it at the grouping module, or in your custom.

@gdgellatly
Copy link
Contributor

@pedrobaeza @Raul-S73 This is also a big problem for us. With fixed execution date even, you get the date of confirmation and not the fixed date you proposed. It really is not intuitive, but seeing it won't be changed we will just put in own module.

@pedrobaeza
Copy link
Member

As said, that way of working is not correct in accounting terms. It's just like Odoo, that worked a lot of time wrongly posting entries directly in the bank account when you register a payment, and now it works correctly.

@gdgellatly
Copy link
Contributor

cmon @pedrobaeza I am a chartered accountant, so I don't need telling what is correct in accounting terms. It is absolutely correct to show a payment at the date it is paid. whether that is tomorrow or in 6 months time. It is extremely common and every accountant knows this.

@pedrobaeza
Copy link
Member

The question is that this is not a payment, it's the promise of a future payment. That's why the journal entry date + due date has been adjusted this way.

@gdgellatly
Copy link
Contributor

Just to follow this up by way of example. I have a balance date of 31 December, and a fixed payment going on 1st Jan. By you argument, the financial year it should appear is whether I do it on the 31st or 1st? complete nonsense to say that a confirmation date is an accounting date.

@pedrobaeza
Copy link
Member

On the 31st of December, you have the balance in the outstanding receipt. On the 1st of January, when coming to your bank, you neutralize the outstanding receipt, and have it on the bank account.

What is not correct is to have all the outstanding receipt balance, its neutralization, and the bank balance on the 1st of January.

@gdgellatly
Copy link
Contributor

On the 31st of December, you have the balance in the outstanding receipt. On the 1st of January, when coming to your bank, you neutralize the outstanding receipt, and have it on the bank account.

What is not correct is to have all the outstanding receipt balance, its neutralization, and the bank balance on the 1st of January.

It is a January payment not a december payment, anyway I can't be bothered arguing standard accounting practice going back to the days of postdated cheques. You are right, we will just be wrong somewhere else.

@pedrobaeza
Copy link
Member

Well, I'm trying to understand any use case outside of the common ones to check for inconsistencies. Till now, we haven't found any. I don't get if your last comment is irony, or I'm missing some detail being English my foreign language.

@gdgellatly
Copy link
Contributor

It just means it is not a fight worth having when I can add to a custom module in 5 minutes. The use case is simple. It is not a promise of a future payment, it is a plan to pay on a certain date. Now I might understand if we were talking about customer payments, but if you are trying to do any cashflow planning even then I think it is unwise to not record at the correct date, but for suppliers no such promise exists. It is simply a future dated transaction.

@pedrobaeza
Copy link
Member

Well, I think any cashflow forecasting should be done using the due date, not the accounting date. It's the same case as with invoices: you have the entry date on the day you post the invoice, but the due date specifies when it should paid/debt.

@gdgellatly
Copy link
Contributor

As I say, I completely disagree, the issue was raised by internal audit, a team of 4 accountants prior to external audit. A fixed execution date is the payment date. But not worth the fight, we fixed it where it needs fixing and everyone can be happy.

Copy link

There hasn't been any activity on this pull request in the past 4 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 PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jan 12, 2025
@pedrobaeza pedrobaeza closed this Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants