Skip to content

[14.0]account_banking_sepa_credit_transfer: SEPA account number added in the order is not the one displayed on the invoice #1399

@klodr

Description

@klodr

Module

account_banking_sepa_credit_transfer

Describe the bug

When you change the account number ( use case account change or account closed) the number displayed on the invoice is not the one used in the order.
That not correct.

To Reproduce

Affected versions: probably all starting from 14.0

Steps to reproduce the behavior:

  1. Add a partner with one valid SEPA account
  2. Add an invoice to an account payment order with a valide SEPA account
  3. Add another invoice to be paid to the partner ( but do not add it to the first order)
  4. Generate/Validate the fist sepa order
  5. Add a new SEPA account to the partner
  6. Archive the old SEPA account in the partner ( for reference)
  7. Update the remaining invoice account number
  8. Create a new order with this invoice
  9. Note that the number added is not the one on the invoice
  10. Pay/Generate a new SEPA Order file
  11. Download the SEPA Order file
  12. Try to validate the SEPA Order file ( got an error unable to validate archived account number)
    Expected behavior
    Number must came from the Invoice not from somewhere else

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstalePR/Issue without recent activity, it'll be soon closed automatically.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions