Commit graph

151292 commits

Author SHA1 Message Date
Laurent Destailleur
4b08955478 Trans 2025-11-02 14:59:01 +01:00
Laurent Destailleur
7ebb809547 Fix url or module provider 2025-11-02 14:49:34 +01:00
Laurent Destailleur
6ab539fe54 Fix url or module provider 2025-11-02 14:48:56 +01:00
Laurent Destailleur
d763a46fd3 Fix picto of modules 2025-11-02 14:26:46 +01:00
Laurent Destailleur
7f7518b389 Move status of modules 2025-11-02 14:21:29 +01:00
Laurent Destailleur
9a91513fc1 Enhance the method find in product batch 2025-11-02 13:47:29 +01:00
Laurent Destailleur
f295746f7d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-02 13:30:33 +01:00
Regis Houssin
b6c27f8052
NEW add the option to not synchronize thirdparty <--> member (#36033)
* NEW add possibility to not synchronize thirdparty <--> member

* FIX more simple

* Change getDolGlobalString to getDolGlobalInt

* Change getDolGlobalString to getDolGlobalInt

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-02 13:28:09 +01:00
MDW
436b270b0d
Fix: SQL compatibility, increase size for incoterms/code (#36049)
* Fix: SQL compatibility, increase size for incoterms/code

- Modify llx_c_incoterms table to increase code field length
- Use `INSERT IGNORE` or `ON CONFLICT` depending on db type

* Simple sql INSERTs instead of INSERT IGNORE

* Qual: Update Incoterms code field in table definition

Updated the llx_c_incoterms table to modify the code field length, and removed modification in the data file.
2025-11-02 13:26:50 +01:00
Jyhere
f13172ee98
CHANGE: ExpenseReport::periodExists() rewrite (#36015)
* CHANGE: ExpenseReport::periodExists() rewrite

* Fix SQL query date condition formatting

* Change SQL condition to include date range

* Update expensereport.class.php

* Rename parameter in periodExists method

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-02 13:16:20 +01:00
Jon Bendtsen
154e5801a9
replacing variable MAIN_MODULE_OPENIDCONNECT with MAIN_AUTHENTICATION_OIDC_ON because openidconnect is no longer a module (#36051)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-11-02 13:07:46 +01:00
MDW
be588ee1be
Qual: Update TVA intra field reference in quadri_detail.php (#36064)
- Changed reference from 'tva_intra' to 'company_tva_intra' in multiple locations
- Updated baseline.txt to reflect reduced occurrences of PhanTypeArraySuspiciousNull and PhanPluginUndeclaredVariableIsset
2025-11-02 13:06:34 +01:00
MDW
2de1724786
Qual: Fix donation notices (#36058)
* Qual: Fix missing abstract isEnabled for ModeleDon

# Qual: Fix missing abstract isEnabled for ModeleDon

* Qual: Fix donation list fields

# Qual: Fix donation list fields

Fixes PhanTypeMismatchProperty issues in don/list.php by typecasting and
adding d.ref field to query & using it.

* Fix: Fix call to ModeleDon::write_file

- Refactored write_file method in don.class.php to extraneous parameters
- Removed PhanParamTooMany warning from baseline.txt

* Qual: Remove duplicate assignment in list.php

Removed redundant assignment of projectstatic.id.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-02 12:58:12 +01:00
Frédéric FRANCE
6e1f01a942
fix a little warning (#36062) 2025-11-02 12:50:23 +01:00
MDW
6c5cd1c7b0
Fix: Uniform assign_values method signatures (#36063)
# Fix: Uniform `assign_values` method signatures

`Canvas` is calling `assign_values` with three arguments, so all methods
must have three arguments.

- Modified `actions_adherentcard_common.class.php` and `actions_contactcard_common.class.php` to add object reference parameter
- Updated `actions_adherentcard_default.class.php` and `actions_contactcard_default.class.php` to pass reference parameter to parent class
- Updated Phan baseline to reflect changes in canvas classes
2025-11-02 12:49:33 +01:00
Frédéric FRANCE
3963002486
fix show_optional with null (#36065) 2025-11-02 12:48:29 +01:00
Jon Bendtsen
20a428e2de
QUAL: API contract: RestException update, check if thirdparty exists before creating/updating contract (#36007)
* QUAL: API contract: RestException update, check if thirdparty exists before creating contract

* also checking if socid exists during put

* using the entity of this contract

* also fixing entity during post

* some hurl tests of contract api

* check if contract id is 0, because that is not possible

* check (un)activate permissions and getEntity()

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 22:47:18 +01:00
MDW
7655c259f8
FIX: Define keyCodeForEnter before first use (takepos) (#36060)
# FIX: Define keyCodeForEnter before first use (takepos)

Move the code to get the keyCodeForEnter from the bottom of the file closer to the top.
This ensure that the variable is defined before first use.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 22:43:24 +01:00
Frédéric FRANCE
dd58e49736
clean code (#36057)
* clean code

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 22:42:12 +01:00
Laurent Destailleur
fe2cf18f52 Add warning in setup of openidconnect 2025-11-01 22:40:21 +01:00
Laurent Destailleur
a4fe30aded Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-01 22:26:54 +01:00
Laurent Destailleur
d93ccee00e Introduce global option MAIN_AUTHENTICATION_OIDC_ON to disable globaly
OIDC
2025-11-01 22:26:38 +01:00
Alexandre SPANGARO
3d0703d5c6
FIX #36025 Accountancy - Error when cloning directly from accounting entry (#36034)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 21:58:04 +01:00
MDW
808eaa8cfc
Fix: Correct fields (takepos/receipt) (#36056)
# Fix: Correct fields (takepos/receipt)

- Use invoice date (not unavailable date_c);
- Correct ifprod1 to idprof1.
2025-11-01 21:57:34 +01:00
Laurent Destailleur
31b4e093cb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-01 19:37:25 +01:00
Laurent Destailleur
b1c7b1154f Debug v23 - Translation not loaded when it should 2025-11-01 19:36:35 +01:00
Mathieu Pellegrin
963deab290
Fix #35970 (#35971)
* Fix #35970

* Add test for invoice status
2025-11-01 18:57:54 +01:00
Alexandre SPANGARO
f4d725bd09
FIX Knowledge management - Button ReOpen show in draft mode (#36008)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 18:55:55 +01:00
Frédéric FRANCE
91af13069a
fix strict check (#36055) 2025-11-01 18:55:28 +01:00
Laurent Destailleur
b39902a4b4 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-01 18:33:15 +01:00
Laurent Destailleur
2c16fffa38 WIP LNE 2025-11-01 18:33:05 +01:00
atm-corentin
a199a7ded9
Fix : performance issues on select bom (#36017)
* optimize SQL query in BOM dropdown by joining product table directly and removing redundant Product object creation

* Change JOIN to INNER JOIN in SQL query

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 17:48:50 +01:00
Frédéric FRANCE
ff7a684a0a
clean code (#36054)
* clean code

* clean code

* avoid obj to be false

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code
2025-11-01 17:48:18 +01:00
PsyCrow
a0da0850a3
Add isextrafieldmanaged property to salary class (#36047)
FIX #36046 enabling extrafieldmanaged to enable deletion of records from the llx_salay_extrafields table
2025-11-01 17:47:52 +01:00
MDW
073426d97e
Qual: Fix multiple phan notices, update baseline (#36022)
* Qual: Fix phan notice with copy of attribute

* Qual: Fix phan notices with cast and updated param definition

* Qual: Fix phan notice with cast

* Qual: Update parameter type hint in utf8_check function

The parameter type hint for the $str parameter in the utf8_check function has been updated to include nullable types (string or int).

* Qual: Update User parameter type to nullable in call_trigger methods

The User parameter in call_trigger methods has been updated to be nullable to accommodate cases where the user object might not be available. This change ensures better flexibility and robustness in the codebase.

* Qual: Update phan baseline

* Qual: phpstan compatible type

* Qual: Add missing type hints for phan

- Add missing type hints for phan
- Fix indentation issues
- Improved consistency in code structure

* Qual: Update field configuration for backward compatibility

Enhanced the field configuration for backward compatibility by adding expected properties to the 'ref' field array.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 17:47:28 +01:00
Frédéric FRANCE
0a3d2c7ddc
clean code (#36053)
* clean code

* clean code
2025-11-01 17:47:13 +01:00
Frédéric FRANCE
f4b91c40a1
fix dol_print_date (#36050)
* fix dol_print_date

* Update box_members_last_subscriptions.php
2025-11-01 17:46:30 +01:00
Frédéric FRANCE
60e2fec850
better debug (#36052) 2025-11-01 17:45:18 +01:00
Laurent Destailleur
79c672fda8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-11-01 13:32:56 +01:00
Laurent Destailleur
c599c114fe WIP LNE 2025-11-01 13:32:45 +01:00
Regis Houssin
17bb284e0c
FIX missing "printFieldListValue" hook (#35990)
* FIX missing "printFieldListValue" hook

* FIX add action paramter

* FIX remove duplicate object
2025-11-01 03:28:51 +01:00
Pierre Ardoin
9c66964104
NEW Add user permission for create/edit/delete supplier prices (#35940)
* Add copyright notice for Pierre Ardoin

* Update permissions for supplier prices management

* Add permissions for supplier purchase prices

* Enhance supplier price permissions

Added advanced permission checks for supplier price management.

* fix tabs&spaces

* fix tab@spaces

* Remove unnecessary blank lines in price_suppliers.php

* Remove unauthorized access checks for supplier prices

Removed access control checks for unauthorized supplier price creation and editing.

* Remove unnecessary blank line in price_suppliers.php

* Refactor user permission checks for supplier prices

replace $usercanwritesupplierprice with $usercancreate

* Refactor edit and remove links for supplier prices

* Update price_suppliers.php
2025-11-01 03:27:25 +01:00
Charlène Benke
e86aa52d83
Modify supplier reputation options in API products (#36029)
Updated supplier reputation parameter options.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 03:24:59 +01:00
Alexandre SPANGARO
2883a7d47a
NEW Accountancy - Add reconcile on general accounting account - SQL part (#35994)
* NEW Accountancy - Add reconcile on general accounting account - SQL part

* Copyright

* Change term lettering for matching

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 03:17:27 +01:00
Lucas Marcouiller
d4cb81508d
NEW Can update value of timespent with last task hourly rate (#36018)
* NEw update task hourly rate

* fix Ci

---------

Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 03:16:17 +01:00
Frédéric FRANCE
e00559b242
fix CI after file rename (#36021)
* fix CI after file rename

* clean code

* clean code

* clean code

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 03:12:58 +01:00
Regis Houssin
aa89439179
FIX muticompany compatibility (wrong sharing name) (#36013) 2025-11-01 03:01:00 +01:00
Charlène Benke
211514c85e
Fix assignment of public property in task class (#36011)
* Fix assignment of public property in task class

* Rename 'public' to 'project_public' in task class

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 02:58:27 +01:00
Bahfir Abbes
f2b0873e26
New module part webportallogin to allow login method definition by external modules in Dolibarr webportal (#36037)
* New module part webportallogin to allow login method definition by external modules in Dolibarr webportal

* Update webportal.main.inc.php

add WEBPORTAL_LOGIN_BY_MODULE to enable disable login by modules

* Fix condition check for web portal login module

---------

Co-authored-by: abb <contact@ab1consult.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 02:46:52 +01:00
Frédéric FRANCE
a2c1bc77c2
clean code (#36010) 2025-11-01 02:38:43 +01:00