Commit Graph

145227 Commits

Author SHA1 Message Date
ldestailleur
a8529cf1a2 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 16:04:21 +01:00
HENRY Florian
8f2ad4bf87 NEW: Add Shared links on links in attachements (#33459)
* NEW: add share option for URL link in attachement

* NEW: fix #33456

* NEW: shared link on links

* NEW: shared link on links

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-19 16:04:11 +01:00
ldestailleur
58509095ba Trans 2025-03-19 16:01:25 +01:00
ldestailleur
065ac4571f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 15:54:36 +01:00
ldestailleur
435a03845f Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 15:54:23 +01:00
Frédéric FRANCE
fded6d7855 fix CI branch 21 (#33535) 2025-03-19 15:53:00 +01:00
Vaadasch
6e381671ff FIX: PRODUIT_AUTOFILL_DESC works even if line_desc is empty. Removing MAIN_NO_CONCAT_DESCRIPTION (#33489)
La variable MAIN_NO_CONCAT_DESCRIPTION est redondante avec PRODUIT_AUTOFILL_DESC.
Cette redondance créée une difficulté de compréhension et des effets de bord, principalement lorsqu'un utilisateur souhaite mettre une description à vide.

# Confirmation de la redondance de MAIN_NO_CONCAT_DESCRIPTION
Pour confirmation : Ajout de lignes de débug pour constatation.
Lignes 1116 à 1122 de DOL_ROOT/core/class/conf.class.php
```php
			print "<p>Before : PRODUIT_AUTOFILL_DESC = " . $this->global->PRODUIT_AUTOFILL_DESC . " ; MAIN_NO_CONCAT_DESCRIPTION = ".$this->global->MAIN_NO_CONCAT_DESCRIPTION . "</p>";
            if (!empty($this->global->PRODUIT_AUTOFILL_DESC)) {
                $this->global->MAIN_NO_CONCAT_DESCRIPTION = 1;
            } else {
                unset($this->global->MAIN_NO_CONCAT_DESCRIPTION);
            }
            print "<p>After : PRODUIT_AUTOFILL_DESC = " . $this->global->PRODUIT_AUTOFILL_DESC . " ; MAIN_NO_CONCAT_DESCRIPTION = ".$this->global->MAIN_NO_CONCAT_DESCRIPTION . "</p>";
```
Application d'une valeur à MAIN_NO_CONCAT_DESCRIPTION = 4 depuis l'interface Configuration -> Divers.
Modification de la variable PRODUIT_AUTOFILL_DESC par l'interface d'admin du module Produit :
```
Before : PRODUIT_AUTOFILL_DESC = 0 ; MAIN_NO_CONCAT_DESCRIPTION = 4
After : PRODUIT_AUTOFILL_DESC = 0 ; MAIN_NO_CONCAT_DESCRIPTION =
```
```
Before : PRODUIT_AUTOFILL_DESC = 1 ; MAIN_NO_CONCAT_DESCRIPTION = 4
After : PRODUIT_AUTOFILL_DESC = 1 ; MAIN_NO_CONCAT_DESCRIPTION = 1
```
```
Before : PRODUIT_AUTOFILL_DESC = 2 ; MAIN_NO_CONCAT_DESCRIPTION = 4
After : PRODUIT_AUTOFILL_DESC = 2 ; MAIN_NO_CONCAT_DESCRIPTION = 1
```

# Conservation de la valeur dans conf.class.php
Pour des raisons de compatibilités, je pense qu'il vaut mieux laisser la partie de conf.class.php pour définir la valeur si jamais il y a des modules tiers qui l'utilisent.

En dehors de cet usage de rétrocompatibilité, je suis passé sur tous les autres fichiers pour la retirer. Je modifierai le wiki pour l'en retirer aussi une fois la PR intégrée.

# Modification des card.php
## Modification de $product_desc en $line_desc.
L'utilisation de $product_desc laissait supposer que le contenu de cette variable était récupérée de la description renseignée dans le produit, or elle est en réalité récupérée du formulaire envoyé.
Je l'ai donc modifiée pour correspondre davantage à la réalité.
## Comportement
Dans le cas où PRODUIT_AUTOFILL_DESC == 0, on concatene la $line_desc avec la description issue du produit, récupérée préalablement par $desc

Co-authored-by: Arnaud Serrut <arnaud.serrut@gmail.com>
2025-03-19 15:50:07 +01:00
ldestailleur
9e7341ed1b Complete #33489 2025-03-19 15:46:39 +01:00
ldestailleur
4a1d31d2b9 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 15:25:13 +01:00
ldestailleur
dc0a23509f Doc 2025-03-19 15:24:55 +01:00
kkhelifa-opendsi
8275627d4e Add "Type" on webhook target card for determine if the trigger is blocking or not (and in the futur possibly asynchrone) (#33499) 2025-03-19 15:24:18 +01:00
MDW
8669993ecf Qual: Fix phan notices (compta/prel..fichinter) (#33485)
* Qual: Fix phan notices (asset..compta/paiement)

* Qual: Fix phan notices (compta/prel..fichinter)
2025-03-19 15:21:48 +01:00
ldestailleur
39c2de721a Fix warnings 2025-03-19 15:17:34 +01:00
ldestailleur
bfcc8449c8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 15:15:22 +01:00
ldestailleur
7098a8e611 Fix warnings 2025-03-19 15:14:33 +01:00
kkhelifa-opendsi
935d93266e FIX: Fix download shared document when for exemple the thirdparty is shared and we create the thirdpaty on entity 1 but generate and share a document from entity 2 (#33507) 2025-03-19 14:57:31 +01:00
kkhelifa-opendsi
ce138c1b3e FIX: Always show message if accountancy hidden options are activated to help to resolve some problems (#33512) 2025-03-19 14:52:43 +01:00
MDW
acd82fcc4b Update tool versions in .pre-commit-config (#33494)
* Update tool versions in .pre-commit-config

# Update tool versions in .pre-commit-config

Update tool versions for pre-commit.
codespell is updated in #33493 .
Prettier was upgraded to 3.1.0 - higher versions are
not compatible with the normal pre-commit workflow apparently.

* Ignore notice from sqlfluff

Ignore LT14 - The 'WHERE' keyword should always start a new line.
2025-03-19 14:51:07 +01:00
MDW
c9804cf6be Qual: Update codespell to 2.4.1 + fix spelling (#33493)
# Qual: Update codespell to 2.4.1 + fix spelling

Update codespell version in pre-commit configuration,
fix new codespell notices
2025-03-19 14:50:44 +01:00
Frédéric FRANCE
e804098a4d add missing translations (#33492)
* add missing translations

* add missing translations

* add missing translations

* add missing translations

* add missing translations
2025-03-19 14:50:19 +01:00
Frédéric FRANCE
2bbb215da2 update fontawesome icon for mastodon (#33515)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-19 14:49:39 +01:00
ldestailleur
f8a844bed9 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 14:48:39 +01:00
ldestailleur
9a42a9348b Merge branch 'OPEN-DSI-develop_new_webhook_add_type_sql' into develop 2025-03-19 14:48:00 +01:00
ldestailleur
3bec92ccfd Merge branch 'develop_new_webhook_add_type_sql' of
github.com:OPEN-DSI/dolibarr into
OPEN-DSI-develop_new_webhook_add_type_sql
2025-03-19 14:47:34 +01:00
github-actions[bot]
b5aa70c2c2 PHPStan > Update baseline (#33496)
Co-authored-by: Dolibot <dolibarr-bot@users.noreply.github.com>
2025-03-19 14:42:59 +01:00
ldestailleur
a3f3f28362 Fix warnings 2025-03-19 14:42:04 +01:00
ldestailleur
66e14bb708 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 14:28:20 +01:00
ldestailleur
5c1f8b58c4 Merge 2025-03-19 14:23:19 +01:00
ldestailleur
63e46fbc8d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 14:19:12 +01:00
ldestailleur
bb719f73cf Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-03-19 14:19:01 +01:00
ldestailleur
1ab438d62e Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-03-19 14:17:37 +01:00
ldestailleur
d0242ad032 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 14:15:23 +01:00
Vincent Quintin
7c3aa76fc8 Fix: Correct search_fk_statut=openall (#33523) 2025-03-19 14:14:33 +01:00
kkhelifa-opendsi
f3b146a1ab FIX: Need missing translation file in result index page of accountancy repport (#33527) 2025-03-19 14:10:44 +01:00
ldestailleur
3e8c5651cd Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2025-03-19 14:09:48 +01:00
ldestailleur
0a4f1ffc06 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2025-03-19 14:09:41 +01:00
ldestailleur
723e267b00 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 14:09:30 +01:00
ldestailleur
66a79dba27 Exclude a warning that is nearly all the time a false positive 2025-03-19 14:09:19 +01:00
Yannis Hoareau
611757bb99 Fix bug where id could be changed by the line id and would create bug (#33498) 2025-03-19 14:01:24 +01:00
atm-lucas
42a1cde41a useless product fetch on invoice create (#33505) 2025-03-19 14:00:03 +01:00
Vaadasch
8a8608fa91 Update paiement.class.php add $error++ if invoice not linked (#33500) 2025-03-19 13:55:13 +01:00
Charlène Benke
5fe018cdba NEW ; Add hook on API call (#33501)
* NEW ; Add hook on API call

* Update index.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-19 13:53:17 +01:00
lvessiller-opendsi
9a570dfa0c FIX float posted quantities on dispatch shipment (#33503) 2025-03-19 13:49:29 +01:00
Frédéric FRANCE
869d7af747 comment test not needed (#33504) 2025-03-19 13:48:56 +01:00
ldestailleur
a0ec0002f6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 13:47:25 +01:00
ldestailleur
557cda5161 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-03-19 13:38:24 +01:00
ldestailleur
aaeff10d31 FIX Css center 2025-03-19 13:38:13 +01:00
ldestailleur
af9b45a186 Trans 2025-03-19 13:32:56 +01:00
ldestailleur
1f822dceb8 NEW Merge surface and volumen in one line on product card. 2025-03-19 13:26:30 +01:00
ldestailleur
d6bfa5e525 Trans 2025-03-19 12:57:36 +01:00