Commit Graph

2807 Commits

Author SHA1 Message Date
ldestailleur
31780e091e Debug v22 2025-05-05 21:51:55 +02:00
Frédéric FRANCE
57aa02f0f4 Fix missing translation (#34014)
* fix missing translation

* fix missing translation

* fix missing translation

* fix missing translation

* fix missing translation

* fix missing translation

* fix missing translation

* fix missing translation

* fix missing translation
2025-04-29 10:53:52 +02:00
ldestailleur
9868eadafd CSS 2025-04-25 15:57:41 +02:00
ldestailleur
7db8252225 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-21 13:52:25 +02:00
ldestailleur
ae5750f099 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-04-21 13:48:05 +02:00
John BOTELLA
08a35bbcff NEW : Toggle Display of Supplier Invoices and Credit Notes on Payment Page (#33856)
* New supplier paiments display all invoices mode

* fix param

* fix php stan

* add display mode dinstinction for css selector
2025-04-15 18:17:36 +02:00
John BOTELLA
1d71d28033 Fix php warning (#33849) 2025-04-15 17:20:47 +02:00
Laurent Destailleur
b27c3b692e FIX #33843 More complete fix. 2025-04-15 02:42:48 +02:00
lvessiller-opendsi
f19cce51f7 FIX compute pending amount on debit request when using bank transfer mass action from supplier invoice list (#33843) 2025-04-14 21:56:34 +02:00
Frédéric FRANCE
8de3b94356 fix syntax (#33756) 2025-04-07 16:35:29 +02:00
ldestailleur
6af8298736 Fix related to #33449 2025-04-07 15:46:10 +02:00
ldestailleur
a8d3fd8db2 Fix CI 2025-04-07 14:05:02 +02:00
ldestailleur
534aec349c Fix CI 2025-04-07 14:01:39 +02:00
ldestailleur
782f28cac6 Clean code 2025-04-07 13:30:25 +02:00
ldestailleur
c7ec63b702 Look and feel v22 2025-04-05 12:55:04 +02:00
Jyhere
16cd7c5b17 FIX: add missing createFrom hook when creating a supplier invoice (#33708)
* FIX: add missing createFrom hook when creating a supplier invoice

* Update card.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-04 15:16:21 +02:00
Alexandre SPANGARO
67dff53958 Fix some problem on new category/tag (#33632)
* FIX Supplier Invoice category - Wrong function on view/edit card

* FIX Invoice category - Wrong link for manage category

* FiIX Translation problem on category

* FIX wrong cat

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-28 23:18:57 +01:00
ldestailleur
ae59c409f6 Modulebuilderization 2025-03-26 00:56:24 +01:00
Yannis Hoareau
1f15c35b15 Removed unnecessary tests (#33603) 2025-03-25 16:29:44 +01:00
Alexandre SPANGARO
1cd2783bd2 NEW Add tags / category on supplier invoice (#33490)
* NEW Add tags / category on supplier invoice

* CI

* Fix condition if constant MAIN_USE_NEW_SUPPLIERMOD is used

* Fix link

* Fix typo

* Fix element type on export

* Fix element type on export
2025-03-25 16:28:51 +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
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
19e63684c7 Look and feel v22: Smaller label with tooltip for customs code. 2025-03-19 11:45:15 +01:00
ldestailleur
e9e5a39b79 Fix deletion when draft. 2025-03-18 18:10:05 +01:00
MDW
0cc1aa6d80 Qual: Fix phan notices (asset..compta/paiement) (#33484)
* Qual: Fix phan notices (accountancy, adherents)

* Qual: Fix phan notices (admin)

* Qual: Fix phan notices (asset..compta/paiement)

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-16 20:45:04 +01:00
ldestailleur
624e87bc51 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-03-14 17:24:52 +01:00
ldestailleur
3c4c5f1c75 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-03-14 12:33:40 +01:00
ldestailleur
681b20f09e Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-03-14 12:32:56 +01:00
MDW
d362fbfe73 Qual: Fix phan notices (htdocs/fourn) (#33432)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-13 10:43:04 +01:00
atm-adrien
b9f4ddb021 FIX : Count on supplier invoice list does not match count in DB (#33351) 2025-03-11 03:00:46 +01:00
ldestailleur
9a77553e44 Clean code for #33351 - Remove useless distinct, aggregate and join. 2025-03-11 02:59:32 +01:00
ldestailleur
34ecda6994 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-25 02:47:26 +01:00
ldestailleur
bf086f95a0 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-02-25 02:42:42 +01:00
ldestailleur
b1492818f6 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-02-25 02:39:50 +01:00
tnegre
9c52eaa4bf FIX invoice creation : use dol_include_once instead of require_once to allow external modules 2025-02-24 17:04:18 +01:00
Laurent Destailleur
00ccb45bc4 Merge pull request #33131 from Easya-Solutions/18_fix_invoice_create
FIX invoice creation : use dol_include_once instead of require_once to allow external modules.
2025-02-21 18:05:24 +01:00
Maximilien Valenzano
431a9de17a fix(fourn): use float for multicurrency tx 2025-02-21 08:21:17 +01:00
tnegre
f89aff96f7 FIX invoice creation : use dol_include_once instead of require_once to allow external modules 2025-02-19 11:45:07 +01:00
Laurent Destailleur (aka Eldy)
863248b618 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-12 15:50:23 +01:00
Laurent Destailleur (aka Eldy)
acc8338927 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-02-12 15:49:37 +01:00
Laurent Destailleur (aka Eldy)
6ed8a0b65b Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-02-12 15:48:56 +01:00
Laurent Destailleur (aka Eldy)
7bc29c61a9 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-02-12 15:44:30 +01:00
ulysse-vldn
47f10cdc29 Fix missing unset post fourn_ref 2025-02-10 09:55:47 +01:00
Laurent Destailleur
52bbbcde8a Merge pull request #32901 from mdeweerd/qual/phan.2025.1.31
Qual: Fix notices, update baseline, enable PhanTypeMismatchArgument
2025-02-05 00:13:08 +01:00
Laurent Destailleur (aka Eldy)
c4f52d0484 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-04 22:51:31 +01:00
MDW
4af154c6d5 Qual: Fix phan notices
# Qual: Fix phan notices

Fix phan notices mostly in relation with supplier invoices,
Fix phan notices in relation with formquestion (phpdoc update, casts).
2025-02-03 16:05:57 +01:00
Laurent Destailleur
c5715f54a6 Debug v21 2025-02-03 15:49:50 +01:00
MDW
dd418533d7 Qual: Update PHPdoc - $page is a url, not an int 2025-01-27 13:24:31 +01:00
Laurent Destailleur
adae4f0fb3 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-27 01:37:52 +01:00