Commit Graph

40549 Commits

Author SHA1 Message Date
Frédéric FRANCE
7f173724ef NEW can admin payments extrafields (#34822)
* add admin for payments extrafields

* add admin for payments extrafields

* add admin for payments extrafields

* add admin for payments extrafields

* add admin for payments extrafields
2025-07-29 13:51:58 +02:00
Sébastien NASSIET
f4c6e2495c Hook for getAvailableDiscounts (#34799)
* Update discount.class.php

Add a hook to change the sql request in function getAvailableDiscounts

* Update discount.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-29 13:25:07 +02:00
ldestailleur
af1948b681 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-29 11:34:16 +02:00
ldestailleur
ce6fc756fa Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-07-29 11:27:58 +02:00
ldestailleur
d34e0b5305 Try fix CI 2025-07-29 11:04:32 +02:00
Laurent Destailleur
23d0879dde Fix regression on pass encryption in conf 2025-07-29 02:36:19 +02:00
Laurent Destailleur
f64848921c Fix regression on pass encryption in conf 2025-07-29 01:46:04 +02:00
Alexandre SPANGARO
0165045524 Fix travis & uniformize (#34817)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-28 21:32:30 +02:00
ldestailleur
ae8e509c9f Fix CI 2025-07-28 18:59:12 +02:00
ldestailleur
89f1b2f608 Fix CI 2025-07-28 18:55:03 +02:00
ldestailleur
b07614414c Fix CI 2025-07-28 18:51:29 +02:00
ldestailleur
5ea9be671c Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-28 18:42:58 +02:00
ldestailleur
6d0277f2b8 Fix CI 2025-07-28 18:38:14 +02:00
ldestailleur
e7eff817e9 Fix bad position of closing brackets. 2025-07-28 17:19:23 +02:00
ldestailleur
7c6a307a01 Fix CI 2025-07-28 17:18:38 +02:00
ldestailleur
0fa59d0e9c Fix CI and warning message 2025-07-28 16:17:03 +02:00
ldestailleur
c75663b2de Fix CI 2025-07-28 15:40:54 +02:00
ldestailleur
d96d61d161 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-28 15:27:25 +02:00
ldestailleur
357c1cd609 Fix getDomainFromURL when param is emails. 2025-07-28 01:47:34 +02:00
ldestailleur
96e38e6584 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-27 14:03:22 +02:00
ldestailleur
030b3d3df5 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-07-27 13:58:13 +02:00
Arthur Lenoble
6144f65427 FIX : No order displayed in orders box (#34789)
* FIX : No element displayed in the order box

Removing the attribution to 0 for $num which caused to never display any order

* Update box_commandes.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-27 13:54:02 +02:00
ldestailleur
8e5efbb3ae css 2025-07-27 13:54:02 +02:00
ldestailleur
6c960ffbaf Fix translation 2025-07-27 13:54:02 +02:00
Regis Houssin
63392fd164 FIX wrong file name (#34779)
* FIX wrong file name

* FIX wrong path
2025-07-27 13:54:02 +02:00
ldestailleur
c2d82e555b Code comment 2025-07-27 13:54:02 +02:00
ldestailleur
8317bf0c29 FIX html title when using custom value 2025-07-27 13:54:02 +02:00
ldestailleur
b03f30c7e2 Sec: Remove functions accepting callable params - Reported by phdwg1410 2025-07-27 13:54:02 +02:00
ldestailleur
7b8c2c5e9c Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-26 13:16:15 +02:00
ldestailleur
1c37761545 Debug v22 2025-07-26 13:13:31 +02:00
ldestailleur
935f947c18 Debug v22 2025-07-26 12:43:55 +02:00
ldestailleur
a7e5510245 Debug v22 2025-07-26 12:17:01 +02:00
ldestailleur
e8de1b62d1 Debug v22 2025-07-26 11:38:27 +02:00
ldestailleur
3c8be27009 Debug v22 2025-07-26 11:18:48 +02:00
ldestailleur
7ea3c419aa Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-25 17:00:22 +02:00
ldestailleur
abbb25d6fe Debug v22 - Fix amount before discount in multicurrency mode 2025-07-25 16:47:18 +02:00
ldestailleur
a27ff8b053 Debug v22 2025-07-25 15:41:57 +02:00
ldestailleur
5248d0bba5 Fix default value of currency update 2025-07-25 03:22:53 +02:00
ldestailleur
1f1e41ae7f Parenthesis 2025-07-25 01:45:15 +02:00
ldestailleur
9d32a5218e Add log 2025-07-25 01:37:48 +02:00
ldestailleur
c3fa113305 NEW Module datapolicy moved as stable (for anonimization features) 2025-07-24 18:34:17 +02:00
ldestailleur
d8eebcafda Fix regression 2025-07-24 15:39:37 +02:00
ldestailleur
de76f65fba Fix combo too heavy of information 2025-07-24 14:54:29 +02:00
VIAL-GOUTEYRON Quentin
5cf613a269 NEW : Major overhaul of DataPolicyCron and add Recruitment policy (#34704)
* refactor(datapolicy): redesign setup and logic for GDPR compliance

- Introduced a data-driven configuration structure for setup.php.
- Added support for a new "recruitment" GDPR datapolicy configuration.
- Streamlined code for managing anonymization and deletion delays.
- Enhanced dropdown generation logic to improve maintainability.
- Simplified data anonymization and deletion methods in cron execution.

This change provides more flexibility and modularity while ensuring compliance with GDPR standards.

* refactor(datapolicy): enhance data cleaning logic and add modular handlers

- Refactored `cleanDataForDataPolicy` method for better readability and efficiency.
- Implemented modular handlers for deletion and anonymization (_handleDelete and _handleAnonymize).
- Added dynamic argument building for method calls based on policy configurations.
- Improved SQL query preparation with placeholders for better database compatibility.
- Enhanced error handling and outcome recording in data processing.

This update simplifies extensibility and ensures robust handling of datapolicies.

* fix precommit

* fix

* fix(datapolicy): resolve uninitialized langs object and improve type hints

- Added a check to ensure `$langs` object is properly initialized, preventing runtime errors.
- Improved type hints in `datapolicycron.class.php` for stronger type checking and clarity.
- Replaced `empty` checks with `isset` for better null safety in setup.php dropdown logic.
- Adjusted SQL placeholders to cast values as strings for compatibility.

These changes enhance code robustness, type safety, and error handling.

* fix(datapolicy): improve type hints and streamline dropdown logic

- Added precise type hints (`string`, `array`) to enhance code clarity and type safety.
- Removed redundant condition in dropdown generation for improved maintainability.
- Added type specification for `$paramName` in `array_map` to strengthen type checking.
- Inserted missing class docblock for `CommonObject` in `datapolicycron.class.php`.

These updates lead to cleaner, safer, and more robust code.

* fix(datapolicy): improve type hints and streamline form submission logic

- Added return type hints (`: int`, `: void`, `: array`) in `datapolicycron.class.php` for better type safety and clarity.
- Simplified loop structures in `setup.php` by removing unnecessary variables.
- Revised `buttonsSaveCancel` method usage to eliminate redundant cancel parameter logic.
- Enhanced maintainability through refactoring `_processPolicyAction`, `_handleDelete`, and `_handleAnonymize` methods.

These refinements improve code readability, maintainability, and robustness.

* refactor(datapolicy): replace custom dropdown generation with `Form::selectarray`

- Removed the custom `$generateSelectHtml` function, simplifying code by using the existing `Form::selectarray` method.
- Updated dropdown generation for 'anonymize' and 'delete' actions to align with Dolibarr's standard practices.
- Enhances maintainability by leveraging built-in utilities and reducing custom logic.

* Update datapolicycron.class.php

* Try to fix CI

* Update datapolicycron.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:41:05 +02:00
ldestailleur
6a18353eb0 Fix CI 2025-07-24 11:00:42 +02:00
ldestailleur
0187d1fcfc Fix CI 2025-07-23 16:31:09 +02:00
ldestailleur
3844c65e89 NEW Enhance popup for image preview (show size in title, can restore
small view, always show the Rotate button).
2025-07-23 14:43:51 +02:00
ldestailleur
b710c85b07 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-07-22 13:00:31 +02:00
Regis Houssin
fe5fad3092 FIX wrong file name (#34779)
* FIX wrong file name

* FIX wrong path
2025-07-22 12:07:46 +02:00
ldestailleur
4274c8102e Fix missing update of replyto 2025-07-22 01:54:25 +02:00