
Technically, it is possible to implement some custom alignment, but we first need to take a step back from a functional standpoint.
The voucher is generated by D365FO and represents the internal accounting registration. It serves as the unique identifier for the posted journal entry in the general ledger. This number is typically auto-generated from a configured number sequence. For the information shared with the customer, we populate the payment reference field in the payment journal line. This field is specifically designed for external use: it is included in the bank payment file and appears on the recipient's bank statement.
The reference number visible on the bank statement is therefore an external element, typically filled with meaningful details for the recipient (like invoice numbers, customer references, or structured codes). This information can even be provided or completed by the client/payee themselves during reconciliation.
Technically the matching rule should be define here:
Thank you,
Giorgio