Commit graph

146345 commits

Author SHA1 Message Date
Anthony Damhet
3399a6dad5
add links to home info-box (#34803) 2025-07-25 21:34:54 +02:00
Anthony Damhet
b66fd8daef
UIUX Add titles to documentation (#34801) 2025-07-25 21:20:26 +02:00
ldestailleur
ea47bc4548 Doc 2025-07-25 21:05:33 +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
33301fa762 css 2025-07-25 10:17:01 +02:00
ldestailleur
493443182e Debug v22 2025-07-25 03:34:04 +02:00
ldestailleur
d1246060dd Debug v22 2025-07-25 03:29:34 +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
c4633cfe76 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-24 19:20:34 +02:00
ldestailleur
d66811e473 CSS 2025-07-24 19:20:24 +02:00
Lenin Rivas
14dd86d75d
NEW Withholdingtax how VatRefund (#34649)
* Withholdingtax VatRefund

* Withholdingtax VatRefund

* Withholding save VatRefund

* Use $this->db->escape() label in Where

* Use GETPOSTFLOAT of resteapayer

* Fix Whitespace

* Update card.php

* Update card.php

* Update card.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 19:18:06 +02:00
ldestailleur
c3fa113305 NEW Module datapolicy moved as stable (for anonimization features) 2025-07-24 18:34:17 +02:00
ldestailleur
7002897dab QUAL: Removed a not/never used table 2025-07-24 18:30:21 +02:00
ldestailleur
cc132ba9e5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-24 17:58:12 +02:00
ldestailleur
5157ae2bd6 Move action code to change ustomer at the good place. 2025-07-24 17:57:48 +02:00
Yannis Hoareau
7f7923c24f
New: SQL for api rest tokens (#34671)
* feat: query to import old user token to new implement with perms

* feat: replaced sql migration file by php upgrade2

* feat: leave state field empty

* Update upgrade2.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 16:11:43 +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
ldestailleur
03165e5cae Remove duplicate definition table. 2025-07-24 14:42:45 +02:00
ldestailleur
ab8b4feca0 Enhance module datapolicy 2025-07-24 12:35:41 +02:00
ldestailleur
6b0f6f4b3a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-24 12:22:08 +02:00
ldestailleur
e4662d0e5c Debug v23 2025-07-24 12:21:39 +02:00
Anthony Damhet
3e0df45f30
NEW | Discount split more than two parts (#34782)
* Discount split more than two parts

* fix spaces

* remove set action split and type variables

* Condition if javascript is disabled

* Update remx.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:53:11 +02:00
ldestailleur
724cb85c9a Fix trans 2025-07-24 11:45:43 +02:00
ldestailleur
5841cee655 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-07-24 11:45:13 +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
MDW
dff2bd9d7c
qual: Update FTP stub for phan (#34796)
# qual: Update FTP stub for phan

Phan did not find the FTP/Connection type, so updated the ftp stub for phan
which fixes some notices that were new

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:30:54 +02:00
MDW
15924c3a14
qual: Update phan baseline (#34795)
Update phan baseline with regards to exceptions that were fixed.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:25:14 +02:00
ldestailleur
256b1b705e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-07-24 11:17:44 +02:00
ldestailleur
d83dcb98f3 Fix warnings 2025-07-24 11:17:32 +02:00
brice.l
789293c78a
Update contrat.class.php (#34784)
* Update contrat.class.php

Fix the function getListOfContracts with a missing LEFT JOIN when using $line_status

* Update contrat.class.php

add the left join in both cases and the inner join only for the product_categorie filter

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-24 11:01:32 +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
8ab460a4d7 FIX warning for too many %s 2025-07-23 14:49:14 +02:00
ldestailleur
2aa30381c6 FIX warning for too many %s 2025-07-23 14:48:32 +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
c796b32f4b Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-07-22 19:40:44 +02:00
ldestailleur
09504c9639 FIX update of expense report line 2025-07-22 19:38:00 +02:00
ldestailleur
e85886cd5c FIX #34776 2025-07-22 19:18:31 +02:00
ldestailleur
73d8f3b1a9 FIX #34776 2025-07-22 19:06:44 +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
ldestailleur
d04e8e62c9 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-07-22 12:56:45 +02:00
ldestailleur
e7594f52ff Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-07-22 12:48:35 +02:00
ldestailleur
d202af2593 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-07-22 12:48:14 +02:00
ldestailleur
ed4006b51b Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2025-07-22 12:47:52 +02:00
Florian Mortgat
bc33f7e1a7
FIX 17.0: when you clone an invoice that was created from a template invoice, the clone should not be linked to the template invoice (#34777) 2025-07-22 12:10:41 +02:00