Commit Graph

7306 Commits

Author SHA1 Message Date
Laurent Destailleur
0008ebe773 Fix CI 2025-04-16 00:19:24 +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
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
omogenot
5d55d75c8e FIX Extend late search option for open and awaiting supplier orders (#33810)
* Create two alert levels

Make search_status be 1,2 for regular late orders and 3,4 for order to be received late state.

* Fix url late target

On main screen, choosing late awaiting orders does not lead to a list of awaiting orders that are in alert.

* Missing space
2025-04-10 12:50:24 +02:00
Frédéric FRANCE
d0cf13e73c add missing translation (#33782)
* add missing translation

* fix missing translation

* fix missing translation

* fix missing translation
2025-04-09 15: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
ldestailleur
c23d5be678 Clean code 2025-04-02 13:23:05 +02:00
ldestailleur
5e616669b6 Propagate fix #33689 to other objects 2025-04-02 11:34:12 +02:00
ldestailleur
6c8ae0b2a6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-31 16:28:08 +02:00
Vincent Maury
85ca2349d7 When Update CommandeFournisseurLigne rang not updated (#33651)
whan calling CommandeFournisseurLigne->update() , rang isn't updated
Added same thing than in PropalLine->update(), CommandLine->update

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-29 13:33:16 +01: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
74a0841ff7 Fix css 2025-03-26 02:04:49 +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
atm-irvine
1e9b58dc9d feat(commandeFournisseur): new set reopen function (#33597)
* feat(commandeFournisseur): new set reopen function

* error : db begin instead of db prefix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-24 23:51:24 +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
atm-lena
bf2a2b5eb3 Add hidden conf : NB_REC_FACT_GEN_BY_CALL (#33473)
* Add hidden conf : NB_REC_FACT_GEN_BY_CALL

* Update fournisseur.facture-rec.class.php

---------

Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-15 15:30:09 +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
ldestailleur
89037af953 Fix phpunit 2025-03-11 17:22:39 +01:00
Alexandre SPANGARO
4cb4be3774 NEW Supplier orders - Add tags/categories (#33386)
* NEW Supplier orders - Add tags/categories

* Fix CI

* Fix CI

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-11 03:20:26 +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
Laurent Destailleur
aad4a2bc7e Merge branch 'develop' into retrieving-extraparams-for-lines 2025-03-06 04:57:15 +01:00
ldestailleur
d20e730c66 Clean code 2025-03-06 04:56:54 +01:00
MDW
f625f8de60 Qual: Fix api phan notices 2025-03-05 13:22:08 +01:00
MDW
eac44b164a Qual: Fix phpdoc index(), FIELDS 2025-03-05 13:21:05 +01:00
yannis
3519174adf Added retrieving extraparams for some object lines 2025-03-03 16:57:32 +01:00
MDW
035ede5874 Qual: Fix phan notices in API classes 2025-03-02 20:49:46 +01:00
MDW
c02293a880 Qual: Add phpdoc for request_data param 2025-03-02 20:49:45 +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
ldestailleur
a9b511b715 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-24 14:13:14 +01:00