Commit Graph

16106 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
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
de9bf13ddd Fix SQL 2026-02-23 19:31:44 +01:00
hansemschnokeloch
e728453b7a Log message additionnal info (#37215) 2026-02-22 01:22:08 +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
f72245353f Debug send email for takepos 2025-01-16 12:52:03 +01:00
Laurent Destailleur
26a78801d5 Debug v23 Fix creation of thirdparty from member and fix deletion 2025-01-16 10:02:33 +01:00
Laurent Destailleur
1a3662176b Fix CI 2026-02-17 18:44:03 +01:00
Laurent Destailleur
de0832bcea Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-02-17 17:23:29 +01:00
Laurent Destailleur
d2a78ce515 CI 2026-02-17 16:02:55 +01:00
Frédéric FRANCE
ba01664d57 fix commoninvoice.class.php (#37267)
* fix commoninvoice.class.php

* Update commoninvoice.class.php
2026-02-17 15:32:16 +01:00
Laurent Destailleur
b595f8468d Fix return 2026-02-17 14:56:03 +01:00
Laurent Destailleur
9c837750a5 Add method to chech if invoice can be replaced 2026-02-17 14:53:26 +01:00
Laurent Destailleur
d0c80f3228 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-16 21:47:14 +01:00
Laurent Destailleur
125d97cf5d Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-16 21:23:48 +01:00
Laurent Destailleur
5433a5642d Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-02-16 21:21:13 +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
Delthair
a544af5d02 #37257 FIX for piesemicircle (#37258) 2026-02-16 20:29:44 +01:00
Charlène Benke
87fc31fa7c add company name on dropdown contract list (#37245) 2026-02-16 20:03:27 +01:00
Laurent Destailleur
904dbef1b2 Debug 2026-02-16 19:51:19 +01:00
Laurent Destailleur
bc9ce0c208 WIP LNE 2026-02-16 05:20:49 +01:00
Laurent Destailleur
160f061326 WIP 2026-02-16 02:03:30 +01:00
Laurent Destailleur
414ea91137 Trans 2026-02-16 00:08:14 +01:00
Laurent Destailleur
0dda1f9a3e Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-15 22:58:58 +01:00
Laurent Destailleur
56618e0c59 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-12 19:51:13 +01:00
Laurent Destailleur
ed868d6dd3 FIX #37072 2026-02-12 18:56:00 +01:00
hansemschnokeloch
c820404856 Error handling methods for commonobject (#37201) 2026-02-12 16:43:24 +01:00
hansemschnokeloch
6a9d4c5ca9 Error handling methods for commonobject (#37201) 2026-02-12 16:42:55 +01:00
MDW
f8e609b3b3 Qual: Update spelling (#37199)
* Qual: Update spelling for pre-select variants

# Qual: Update spelling for pre-select variants

In English, preselect is without the hyphen.  Update text and made some translations
related to preselect.

* Qual: Update composant to component and/or adequate translation.

# Qual: Update composant to component and/or adequate translation.

"Composant(s)" was mostly referenced in french file/class comments.
Updated

* Qual: Fix misspellings related to "criteria"

# Qual: Fix misspellings related to "criteria"

* Qual: Fix produt misspellings

# Qual: Fix produt misspellings

Change 'produt' to 'product'.

* Qual: Update French comments with "composants"

#Qual: Update French comments with "composants"

- Translating French comments to English (avoid codespell notice)

* Qual: Fixed typo 'bad practive' to 'bad practice'

# Qual: Fixed typo 'bad practive' to 'bad practice'

* Qual: Update phan.yml to exclude specific files from analysis

- Added file exclusion pattern to match phan configuration
- Added check for empty file list to avoid unnecessary phan execution

* Qual: Update file filtering in phan.yml workflow

The change updates the file filtering process in the phan.yml workflow to correctly redirect the output of the grep command to a temporary file.

* Qual: Ignore $systemfunction always exists

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-12 16:29:11 +01:00
Joris Le Blansch
b1d60ec82b CLOSE #37190 ODT Templates for thirdparties - Birthday is returned in epoch format (#37198)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-12 16:27:30 +01:00
Laurent Destailleur
caa5d7b347 Debug v23 2026-02-12 16:23:43 +01:00
Laurent Destailleur
6d48243b68 Add hook in isEditable() 2026-02-12 16:01:54 +01:00
Laurent Destailleur
7b453994d8 Fix CI 2026-02-12 15:18:31 +01:00
Frédéric FRANCE
9ac93e1e98 fix phpstan errors blocking action baseline (#37189)
* fix phpstan errors blocking action baseline

* fix phpstan errors blocking action baseline

* fix phpstan errors blocking action baseline

* fix phpstan errors blocking action baseline

* fix phpstan errors blocking action baseline

* refresh baseline
2026-02-11 00:52:15 +01:00
hansemschnokeloch
019e17c040 Replace var_export by formatLogObject (continued) (#37188)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-10 16:54:51 +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
Laurent Destailleur
853f09ccef CI 2026-02-09 19:50:05 +01:00
Alexandre SPANGARO
0cc80e65ed FIX SQL Error on VAT not defined in product card (#37159) 2026-02-09 18:33:54 +01:00
Laurent Destailleur
a2822764e5 WIP LNE 2026-02-09 07:11:20 +01:00
Laurent Destailleur
7e1fb745b5 NEW Use the js lib into htdocs/public/includes instead of htdocs/includes 2026-02-08 23:11:40 +01:00
Laurent Destailleur
1025c6798a Clean code 2026-02-08 22:38:26 +01:00
MDW
1166dd305b Qual: Update comments from French to English (#37097)
* Qual: Update comments from French to English

# Qual: Update comments from French to English

* Qual: Fix missing initialisations

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 15:29:53 +01:00