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

Use bank.payment.line reference in Payment Order Move Lines #418

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

ecino
Copy link
Contributor

@ecino ecino commented Nov 10, 2017

When closing an account.payment.order the move generated have in the reference field, the name of the payment order.

When payment are not grouped by date it generates a lot of moves that have the same reference and we propose to use instead the bank.payment.line reference in order to differentiate those moves.

We think it makes more sense for reconciling. If several bank.payment.line are groupped in a same move we do not change the previous behaviour.

@ecino
Copy link
Contributor Author

ecino commented Dec 13, 2017

I think this change is a nice improvement for the reconcile of payment lines. Plus it's a very small change, if someone is willing to review?

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.

Please change the module version number, and IMO, we should have:

  • Current ref
  • Plus payment line number (or the name you suggest).

@ecino ecino force-pushed the 10.0-bank-line-reference branch from 361cb62 to 9ca66a8 Compare June 28, 2018 13:12
@ecino
Copy link
Contributor Author

ecino commented Jun 28, 2018

@pedrobaeza I updated module version. What do you mean by current ref and payment line number? Do you mean payment_order.name and bank_line.payment_line_ids.name (but could link to several payment lines)?

@pedrobaeza
Copy link
Member

pedrobaeza commented Jun 28, 2018

The code I suggest is:

        if self.payment_type == 'outbound':
            ref = _('Payment order %s') % self.name
        else:
            ref = _('Debit order %s') % self.name
        if bank_lines and len(bank_lines) == 1:
            ref += " - " + bank_lines.name

@ecino ecino force-pushed the 10.0-bank-line-reference branch from 9ca66a8 to fc045d4 Compare June 29, 2018 07:31
@ecino
Copy link
Contributor Author

ecino commented Jun 29, 2018

@pedrobaeza Ok, good point, I just updated my code.

@ecino ecino force-pushed the 10.0-bank-line-reference branch from fc045d4 to 89a71e7 Compare June 29, 2018 07:33
@pedrobaeza
Copy link
Member

@alexis-via @sbidoul what do you think about this?

@ecino
Copy link
Contributor Author

ecino commented Sep 4, 2018

Can we merge?

@pedrobaeza pedrobaeza added this to the 10.0 milestone Sep 4, 2018
@pedrobaeza
Copy link
Member

As this is adding, not replacing, I think it's harmless, so I merge and cherry-pick for v11.

@pedrobaeza pedrobaeza merged commit b251f9e into OCA:10.0 Sep 4, 2018
pedrobaeza pushed a commit that referenced this pull request Sep 4, 2018
rven pushed a commit to rven/bank-payment that referenced this pull request Oct 2, 2018
sergio-teruel pushed a commit to Tecnativa/bank-payment that referenced this pull request Nov 5, 2018
pedrobaeza pushed a commit to Tecnativa/bank-payment that referenced this pull request Dec 13, 2018
rven pushed a commit to rven/bank-payment that referenced this pull request Nov 8, 2019
rven pushed a commit to rven/bank-payment that referenced this pull request Nov 18, 2019
rven pushed a commit to rven/bank-payment that referenced this pull request Dec 17, 2019
rven pushed a commit to rven/bank-payment that referenced this pull request Jan 23, 2020
rven pushed a commit to rven/bank-payment that referenced this pull request Mar 2, 2020
rven pushed a commit to rven/bank-payment that referenced this pull request Mar 8, 2020
rven pushed a commit to rven/bank-payment that referenced this pull request Mar 12, 2020
rven pushed a commit to rven/bank-payment that referenced this pull request Mar 17, 2020
Oscar-Valverde pushed a commit to Jarsa-dev/bank-payment that referenced this pull request Oct 24, 2020
alan196 pushed a commit to Jarsa-dev/bank-payment that referenced this pull request Nov 14, 2020
alan196 pushed a commit to Jarsa-dev/bank-payment that referenced this pull request Nov 18, 2020
CarlosRoca13 pushed a commit to Tecnativa/bank-payment that referenced this pull request Jan 5, 2021
CarlosRoca13 pushed a commit to Tecnativa/bank-payment that referenced this pull request Jan 5, 2021
dnplkndll pushed a commit to Kencove/bank-payment that referenced this pull request Oct 31, 2021
misern2 pushed a commit to QubiQ/bank-payment that referenced this pull request Dec 15, 2021
misern2 pushed a commit to QubiQ/bank-payment that referenced this pull request Mar 9, 2022
wpichler pushed a commit to wpichler/bank-payment that referenced this pull request Oct 25, 2022
wpichler pushed a commit to wpichler/bank-payment that referenced this pull request Dec 15, 2022
gfcapalbo pushed a commit to gfcapalbo/bank-payment that referenced this pull request Jan 17, 2023
wpichler pushed a commit to wpichler/bank-payment that referenced this pull request Jan 27, 2023
pedrobaeza pushed a commit to Tecnativa/bank-payment that referenced this pull request Mar 4, 2023
angelmoya pushed a commit to SidooSL/bank-payment that referenced this pull request Jan 3, 2024
ramiadavid pushed a commit to ramiadavid/bank-payment that referenced this pull request Jan 13, 2024
ramiadavid pushed a commit to ramiadavid/bank-payment that referenced this pull request Feb 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants