Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.11k stars 2.68k forks source link

SEPA Mandate uses wrong customer code for UMR #29799

Open Adventurousdonut opened 1 month ago

Adventurousdonut commented 1 month ago

Bug

When generating a sepa mandate by adding a new payment method, when you dont fill out the UMR it auto generates one for you. This UMR includes the customer code. It doesn't use the existing customer code though. When you create a mandate for customer CU1908-00002 the automatic UMR is UMR-2405302251-1-CU1908-0000 (being the very first mandate created in the dolibarr instance).

Dolibarr Version

19.0.0

Environment PHP

8.1.27

Environment Database

MySQL

Steps to reproduce the behavior and expected behavior

Go to a third party -> payment methods -> create a new one and dont fill out the UMR field -> build doc

Attached files

grafik grafik

Hystepik commented 1 month ago

Hello, I think it's fixed, can you check with the last version of 19.0.2

Adventurousdonut commented 1 month ago

Hello, I just spun up a brand new test instance for 19.0.2 using a the dolibarr docker compose and i had the same results: grafik grafik grafik

Dolibarr Version: 19.0.2 PHP Version: 8.2.7 Database: 11.4.2-MariaDB-ubu2404 (Maybe if it's relevant everything is set to the country Austria and the language german)