-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Problem adding partially reconciled moves to a payment order #93
Comments
@sbidoul I agree with your proposal, because I always use the module "account_banking_payment_transfer" that generate account moves when the payment.order is validated, so that the residual amount is updated as soon as the payment order is validated. |
Well, I see that a potential user problem, because they can add the invoice to two or more payment orders that are not validated, and then validate both, creating a negative balance and the user will be unnoticed. It's better to fix the amout to amount_residual field in amount_to_pay than to completely remove it. |
@pedrobaeza using amount_residual in amount_to_pay won't work because if the paid amount is both reconciled and in a payment order it will be deduced twice from the amount to pay: first in amount residual and second from the payment line. |
@pedrobaeza your use case could be taken care of by not showing at all any invoice that is in a payment order that is not sent. |
OK, so what do you propose then? |
@pedrobaeza my proposal is just above your last comment. What do you think? |
@siboul I like your idea of "not showing at all any invoice that is in a payment order that is not sent." It is simple and reliable. |
@sbidoul excellent analysis, I agree in principle with your solution + hide invoices from pending payment orders. The situation for setups that don't use clearing accounts could be a bit messy, but I understand from you that Odoo 8.0 natively dropped the check for pending payment orders so I would be happy to follow. |
OK for me too. |
This fixes OCA#93. - filter invoices that are already in draft and open payment orders. - use residual amount to care for partial reconciliations and align with official 8.0
@alexis-via @pedrobaeza @StefanRijnhart thanks for the feedback. |
This fixes OCA#93. - filter invoices that are already in draft and open payment orders. - use residual amount to care for partial reconciliations and align with official 8.0
This fixes OCA#93. - filter invoices that are already in draft and open payment orders. - use residual amount to care for partial reconciliations and align with official 8.0
This fixes OCA#93. - filter invoices that are already in draft and open payment orders. - use residual amount to care for partial reconciliations and align with official 8.0
I have an other use case that has an issue regarding the partial payment:
So far so good, but when I create an other payment, it is not taken into the payment_ids of the invoice.
And when I check the invoice, this is where I think something is wrong:
|
I have an interesting behaviour when I test the button "Partial Reconcile Counter" on the payment order. I can see in the code that we have a domain on the action_window that we return (with the method partial) but strangely it seems to not take it into account when we edit the lines (just click on the line if you were to edit it). I made this video to illustrate: http://youtu.be/S0FHnnNkMJM In the use case of the video:
Is it what is expected? |
That's weird indeed. That's similar to the behaviour of the Journal Items view, but there it occurs only when you change a line. Here it does not look like you change anything, and you just click on different lines, right? |
yes. I just click on the line. |
Before we investigate, could you try if you have the same behaviour when going to a Customer or Supplier form and clicking on the Journal Item button on that form? |
No, I do not have the same behaviour when I go to a supplier form view and click on the button "Journal Items". Yeah, we need to override that method as well I believe:
What do you think? |
I must admit I don't think much about that particular issue. I'll ask my colleague @adrienpeiffer. |
This fixes OCA#93. - filter invoices that are already in draft and open payment orders. - use residual amount to care for partial reconciliations and align with official 8.0
Hi, I can reproduce this behavior on the Journal Items view. Anyone can clarify this? Otherwise, I propose to do a PR to remove this part of code. This is the only place in the core where it is used. What do you think ? |
This issue has actually already been reported to Odoo on the 18th Oct 2014: odoo/odoo#3161 |
@matthieuchoplin from my point of view #110 is ready to merge. Your approval there will help. I'd like to have @pedrobaeza's approval because he had concerns about the selection of customer credit notes. |
…e use case given in OCA#93
This fixes OCA#93. - filter invoices that are already in draft and open payment orders. - use residual amount to care for partial reconciliations and align with official 8.0
8.0 improve selection of invoices to pay, solves #93
Hello,
When adding invoices to a payment order, the algorithm in account_banking_payment_export (amount_to_pay) takes the credit minus the existing payment lines in valid payment orders.
In a scenario where the original invoice has been partially reconciled with a credit note (and therefore not paid through a payment order), the proposed amount is still the original invoice.
The scenario goes as follow:
In official 8.0, the amount to pay is the residual amount (which is now correct in the presence of partial reconciliations). This does not take into existing payment orders anymore, though. IMO, this is fine especially when people work with transfer accounts, because as soon as the payment order is confirmed, the invoice is reconciled and the residual updated.
So I would suggest
@alexis-via @StefanRijnhart @pedrobaeza what is your opinion?
The text was updated successfully, but these errors were encountered: