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.32k stars 2.76k forks source link

SQL error during the annual accounts closing. #29301

Open GregChant opened 6 months ago

GregChant commented 6 months ago

Bug

There is no A-nouveau for the year 2022, the exercise starts in 2023. It is impossible to close the fiscal year. An SQL syntax error is blocking the operations. Attached are screenshots. Capture d'écran 2024-04-10 064227 Capture d'écran 2024-04-10 064246

Dolibarr Version

19.01

Environment PHP

8.1.27

Environment Database

MariaDB 10.6.15

Steps to reproduce the behavior and expected behavior

Attached files

No response

GregChant commented 5 months ago

Ok, I found the issue occurring because I did not fill in all the fields in the account closure configuration. It would be wise to add a condition to avoid sending an SQL query on pcg_type. I will leave the bug open until it is fixed.