Created on 2020-03-11.08:42:44 by risto3, last changed 7 months ago by ced.
Indeed the payment may pay a line from a different account. If no clearing is used, it may be helpful to set by default the account from the line of the payment. So this is linked to account_payment only not account_payment_clearing (even if issue9164 will be needed to have proper behavior). But I think before implementing this behavior, issue6854 should be fixed (see msg51856) because the complexity increases when dealing with many fields to fill the account.
Normally the payment account should be the same the party receivable. So it should work out of the box without any additional patch.
except the patch in issue9164 unfortunately does nothing for this issue... payment.line.account must be used if no clearing account is set.
> Indeed if there is no clearing set and no account filled, on_change_payment > could use the account of the line if there is one. I must admit not to well understand the existing code. I would have thought that if clearing was set, it be mandatory. But the implementation is only if there is no account already set, which seems odd. Therefore, in the attached I always set the account used in the payment prior to the questionable clearing account code, as we frequently see improper accounts set by default entering the statement origin line form.
finally, I am also surprised that when validating the statement after correcting the account, the payment line is not even reconciled with the statement move line! If it was an invoice selected, and not a payment, the line *is* reconciled.
I notice that sometimes when selecting the supplier, the account automatically fills in, and in this case it is the wrong one. This should also be bugfixed, please.
Indeed if there is no clearing set and no account filled, on_change_payment could use the account of the line if there is one.
still difficulties with grouping payments and statements. Scenario: - supplier issues bill of exchange for 1 or more invoices in period - group the payment lines (from French account 401100) - correct the primary move dates and set grouped amount line to account 403000; then post - pay the line and approve - in the statement origin, select the supplier and appropriate payment line instead of setting account to 403000 it is set to 401100 It should be set to the account in the payment line
|2020-06-13 09:29:47||ced||link||issue8732 superseder|
+ account_payment, - account_payment_clearing|
superseder: + Merge invoice, payment and payment group in statement line
messages: + msg56724
keyword: - patch
|2020-03-28 11:58:24||pokoli||set||priority: bug -> feature|
|2020-03-28 11:58:15||pokoli||set||messages: + msg56723|
|2020-03-28 11:30:38||risto3||set||priority: feature -> bug|
|2020-03-28 11:29:55||risto3||set||status: closed -> chatting|
nosy: + pokoli
messages: + msg56722
|2020-03-28 10:52:55||ced||set||status: chatting -> closed|
messages: + msg56721
superseder: + Ensure clearing account is used on statement
messages: + msg56719
keyword: + patch
|2020-03-11 12:59:02||risto3||set||messages: + msg56206|
|2020-03-11 12:48:52||risto3||set||messages: + msg56205|
Showing 10 items. Show all history (warning: this could be VERY long)