Commit Graph

41841 Commits

Author SHA1 Message Date
Laurent Destailleur
374d609ce8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-24 18:12:05 +01:00
Lucky
db3df89ee2 New options for withdraw control (#37179)
* New options for withdraw control

Add a new option "WITHDRAW_STRICT_CHECK_AMOUNT"
Transfer request control is based solely on the supplier invoice amount:
By default, once a request is made, even if its amount is less than the invoice amount, no additional requests can be made until the original request is validated (integrated into a transfer slip).
With this option, the control is applied to the sum of all requests, even if they are not integrated into a SEPA transfer slip.
The control verifies that the total sum of the requests never exceeds the invoice total.
By default, one or more requests exceeding the invoice amount can be entered; this option prevents this behavior.

This behavior is more logical and user-friendly, especially when transfer requests are made by technicians or buyers and the SEPA files are created by the accounting department.

* fix

* Update commoninvoice.class.php

* fichier lang

* Cast remaining amounts to float for precision

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-24 18:06:31 +01:00
Pierre Ardoin
df352dfbb3 NEW Support for __AUTHOREMAIL__ in fixed notifications (#37285)
* Update notification.php

* Update notify.class.php

* Update mails.lang

* Update mails.lang

* Update notify.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-24 17:53:24 +01:00
Alexandre SPANGARO
a7a5e211c2 NEW Accountancy - Transaction template system (#37286)
* NEW Accountancy - Transaction template system

* CI

* CI

* CI

* CI

* CI

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-24 17:50:20 +01:00
MDW
84e509394c Fix: CI (#37324)
* Fix: key is never 'PAYMENT_CUSTOMER_CREATE'

* Fix: Update include path and formatting

- Update include path for versionmod.inc.php
- Apply code formatting

* Qual: Ignore phpstan notice

# Qual: Ignore phpstan notice

- Country code is already FR, but test can be useful in the future, so ignoring the notice.
- Code formatting

* Qual: Try exact match to suppress phpstan notice

# Qual: Try exact match to suppress phpstan notice
2026-02-24 17:35:35 +01:00
splohmer
f919a83721 FIX upload of files with multiple spaces via drag'n'drop flow (#37271)
* Debug savedemo

* Fix mention

* FIX upload of files with multiple spaces via drag'n'drop flow

Currently there are two ways to upload files to products, orders, etc. via the "old" way and the document tab and the "new" flow via drag'n'drop on the main tab of the object.

Both ways triggering completely different code paths. In the end the new way uses dol_sanitzieFileName to sanitize the name of the file and the old way uses dol_string_nohtmltag (both from functions.lib.php).

One of the main difference between the two mentioned functions is that in the old way multiple spaces behind each other are replaced by a single space. E.g. "A␠␠B␠␠␠C␠␠D" is tranformed to "A␠B␠C␠D".

This is needed to make sure that the files are properly uploaded and can be later also downloaded correctly.

How to reproduce?
Upload a file like "test␠␠test.txt" via the drag'n'drop flow and try to download it from the document tab. This is not working. You can see the file but cannot download it. The same flow via the input field of the document tab is working correctly.

* typo in comment

* FIX Phan warnings (unrelated to feature)

* FIX Phan warnings (unrelated to feature)

* FIX Phan warnings (unrelated to feature)

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 20:08:30 +01:00
Laurent Destailleur
7e20cd27f6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-23 19:55:37 +01:00
Laurent Destailleur
de9bf13ddd Fix SQL 2026-02-23 19:31:44 +01:00
minimexat
dd3709be29 fix: use ob_end_clean() instead of ob_end_flush() in readfileLowMemory() (#37298)
* fix: use ob_end_clean() instead of ob_end_flush() in readfileLowMemory() (fixes #37239)

* fix: use robust ob level cleanup loop per hregis review

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 01:36:32 +01:00
Laurent Destailleur
717f315551 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-23 01:30:54 +01:00
Laurent Destailleur
c15994cbf8 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-02-23 01:29:51 +01:00
atm-corentin
020f552410 Adjust tracking number height calculation in PDF generation (#37289) 2026-02-23 01:05:35 +01:00
minimexat
4117aa4e31 fix(expedition): add 'shipping' as valid modulepart alias in dol_check_secure_access_document (#37307)
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
2026-02-23 00:39:44 +01:00
minimexat
e52c212a81 fix(expedition): add 'shipping' as valid modulepart alias in dol_check_secure_access_document (#37307)
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
2026-02-23 00:38:56 +01:00
Laurent Destailleur
de8f15ce38 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-02-23 00:11:16 +01:00
hansemschnokeloch
e728453b7a Log message additionnal info (#37215) 2026-02-22 01:22:08 +01:00
Laurent Destailleur
cdbd56c0ba Clean code 2026-02-21 22:34:37 +01:00
Laurent Destailleur
7df18dbad8 Clean scripts 2026-02-21 12:28:45 +01:00
Laurent Destailleur
7728f8c895 WIP LNE 2026-02-21 11:44:43 +01:00
Laurent Destailleur
acc5f754e6 Removed the header that was a copy past, but this file was authored by
one dev only
2026-02-21 10:28:13 +01:00
Laurent Destailleur
a4d5990c2e Add full version 2026-02-20 00:49:35 +01:00
Laurent Destailleur
4a212daf49 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-02-20 00:30:35 +01:00
Laurent Destailleur
11d4fafca0 Version module 2026-02-19 22:29:20 +01:00
Laurent Destailleur
23da8b6934 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-18 03:34:33 +01:00
tcesar
41294d5a27 Fix export extra-fields of warehouses (#37264) 2026-02-17 14:36:54 +01:00
Laurent Destailleur
bff98ad817 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-16 21:11:20 +01:00
Laurent Destailleur
7ccd12e865 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2026-02-16 21:08:22 +01:00
Laurent Destailleur
e64ab3c751 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2026-02-16 20:51:44 +01:00
Laurent Destailleur
6adc5dc78d Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2026-02-16 20:47:21 +01:00
Laurent Destailleur
2a41e1f714 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2026-02-16 20:44:36 +01:00
Joachim Kueter
7a37ebbeb3 FIX: Clean filenames with double spaces (#37256)
* Clean filenames with double spaces

If a filename contains double spaces, it can get uploaded in Dolibarr exactly as it is.

When listing the file or trying to download it, the dolibarr functions clear double spaces in the filename. In particular the alpha parameter for GETPOST.

This results in files being uploaded (e.g. attachments for invoices) than can get listed but remain inaccessible and even cannot get deleted via UI. 

We either need to fix all these places to accept double spaces or we change a single location, when we sanitize filenames.

* removed white space
2026-02-16 20:03:22 +01:00
Laurent Destailleur
ed868d6dd3 FIX #37072 2026-02-12 18:56:00 +01:00
Laurent Destailleur
718f318089 Fix error when setup not complete. 2026-02-11 22:53:55 +01:00
Vincent Penel
e43438cc7b Fix/ticket status (#37129)
* set oldCopy and Status

* Update ticket.class.php

* Question Eldy

* Fix event status change

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-10 15:40:05 +01:00
atm-jonathan
4532d69220 Add missing CSRF tokens in bank left menu links (#37181)
* Add missing CSRF tokens in bank left menu links

* clean QUAL

* Update eldy.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-10 15:15:43 +01:00
Alexandre SPANGARO
0cc80e65ed FIX SQL Error on VAT not defined in product card (#37159) 2026-02-09 18:33:54 +01:00
yveslg
4951edfbd0 Fix/accountancy pdf wrong labels (#37153)
* FIX #37147 Limit account fetch to active chart of accounts in PDF exports

When multiple chart of accounts have the same account number, the PDF
exports (balance and ledger) could retrieve the wrong account label.

* FIX #37147 Decode HTML entities in balance PDF account group labels

The balance PDF export was displaying HTML entities (like &EACUTE;) instead
of properly decoded characters (like É) in account group labels.
2026-02-08 20:09:40 +01:00
Laurent Destailleur
7f9bdc5f45 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2026-02-08 15:50:12 +01:00
Eric - CAP-REL
94d4f2661d MEMBER_ADDON does not exists, MEMBER_CODEMEMBER_ADDON is the right key (#37151) 2026-02-08 15:38:36 +01:00
Laurent Destailleur
afc3879d84 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-08 14:53:59 +01:00
Alexandre SPANGARO
7bb57721bb FIX Invoice - Don't show discount on credit note type (#37145) 2026-02-08 14:29:25 +01:00
Anthony Berton
6ef62a45b5 FIX - getModuleDirForApiClass for propal (#37098)
Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
2026-02-07 23:44:57 +01:00
Benjamin Falière
e2aed0f5c1 FIX: #36989 private mention on ticket pdf (#37079)
Co-authored-by: Benjamin Falière <benjamin.faliere@altairis.fr>
2026-02-04 14:41:29 +01:00
Frédéric FRANCE
f7092b4377 fix CI v21 (#37035)
* fix CI v21

* Update functions.lib.php
2026-01-31 20:30:12 +01:00
atm-lucas
87f81fb853 fix column total ht pdf espadon (#37038) 2026-01-31 20:26:31 +01:00
Laurent Destailleur
6b73bb78a4 CI 2026-01-30 13:22:02 +01:00
Laurent Destailleur
53dbc754f6 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2026-01-27 10:43:41 +01:00
Laurent Destailleur
a9dcecbc2f Merge branch '16.0' of git@github.com:/Dolibarr/dolibarr.git into 17.0 2026-01-27 10:43:20 +01:00
Laurent Destailleur
5d524f7973 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2026-01-27 10:43:01 +01:00
Laurent Destailleur
1b2f16b01a Fix ci 2026-01-27 10:42:37 +01:00