Commit Graph

5707 Commits

Author SHA1 Message Date
Laurent Destailleur (aka Eldy)
22e40ccdc4 Debug v21 2025-01-23 14:59:22 +01:00
Laurent Destailleur (aka Eldy)
d13de51a90 Debug v21 2025-01-23 14:57:05 +01:00
Laurent Destailleur (aka Eldy)
e36f5fc31d Debug v21 2025-01-23 13:07:51 +01:00
Frédéric FRANCE
618f733d25
fix doc 2025-01-22 09:03:45 +01:00
Laurent Destailleur
87333363d4
Merge pull request #32622 from atm-maxime/new_detect_country_code2
NEW : auto-detect country from code in creation	(follow-up⁾
2025-01-21 08:33:16 +01:00
Laurent Destailleur
bd7dd2c627
Merge branch '20.0' into fix_20_wrong_value_of_socid 2025-01-20 15:23:10 +01:00
Laurent Destailleur (aka Eldy)
30dc853bb7 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-20 15:09:16 +01:00
Laurent Destailleur (aka Eldy)
fa9fe2efa7 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-20 15:02:37 +01:00
Laurent Destailleur (aka Eldy)
c9ab22782e Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-01-20 14:57:45 +01:00
Laurent Destailleur (aka Eldy)
1f360ca498 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-01-20 12:28:49 +01:00
Laurent Destailleur (aka Eldy)
1b42078d1e Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2025-01-20 10:24:30 +01:00
Laurent Destailleur
67521e9c4f Clean code 2025-01-20 03:54:04 +01:00
Laurent Destailleur
08d32dbf25 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-20 01:00:21 +01:00
Laurent Destailleur
162878ecf4 Fix phpunit 2025-01-20 00:44:02 +01:00
Laurent Destailleur (aka Eldy)
f11d701486 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-19 15:02:20 +01:00
MDW
89f040c69e
Qual: Fix ci, PHPdoc fk_website needs to match default value
# Qual: Fix ci, PHPdoc fk_website needs to match default value

Correct doctype for new $fk_website in getCustomerAccount.
Also made definition of type for $status more strict.
2025-01-18 14:28:35 +01:00
Laurent Destailleur (aka Eldy)
cd4e5c8998 Debug v21 2025-01-17 15:24:21 +01:00
Laurent Destailleur (aka Eldy)
654aa24e8c Debug v21 2025-01-17 14:21:55 +01:00
Laurent Destailleur (aka Eldy)
4786d75277 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-17 01:30:31 +01:00
Laurent Destailleur (aka Eldy)
4bf6511811 Debug v21 - getCustomerAccount return duplicates. Misssing a key. 2025-01-16 22:03:51 +01:00
Laurent Destailleur
e2b3b6360f
Merge pull request #32686 from mdeweerd/fix/phpunit.win
FIX ci: Remove exit from SocieteTest, include company.lib in Societe.class.php which uses getCountry
2025-01-16 18:45:45 +01:00
MDW
7c31549f71
FIX societe.class.php uses getCountry, provided by company.lib
# FIX Societe.class.php uses getCountry, provided by company.lib

Include company.lib.php in societe.class.php.
The SocieteTest.php test failed when run independently on windows.
2025-01-16 17:32:04 +01:00
Laurent Destailleur (aka Eldy)
84d982cdfb Fix js warning 2025-01-16 15:35:17 +01:00
Alexandre Janniaux
63c991413e api_thirdparties: fix num_rows typo
$res->num_rows will not work on PostgreSQL. $db->num_rows() must be used
instead to execute the correct procedure depending on the database
backend.

But the call was not written properly and both were mixed up in commit
25741a618e which used $db->num_rows, and
then fixed in 72c443868c which used
$db->num_rows($result) where suited, except this location.
2025-01-16 14:48:08 +01:00
Laurent Destailleur
e4a7b286b2
Merge pull request #32677 from alexandre-janniaux/apithirdparties-num_rows-leftovers
FIX: api_thirdparties: fix num_rows typo
2025-01-16 14:35:42 +01:00
atm-florian
ba4e97f07b FIX 17.0 API endpoints "PUT": prevent overwriting all extrafields if only some are supplied in the request cf. PR #29237
+ security for Tickets API: disable updating rowid
2025-01-16 10:37:29 +01:00
Laurent Destailleur (aka Eldy)
16b28e4d16 Debug v21 2025-01-15 21:19:18 +01:00
Alexandre Janniaux
d5584f4e32 api_thirdparties: fix num_rows typo
$res->num_rows will not work on PostgreSQL. $db->num_rows() must be used
instead to execute the correct procedure depending on the database
backend.

But the call was not written properly and both were mixed up in commit
25741a618e which used $db->num_rows, and
then fixed in 72c443868c which used
$db->num_rows($result) where suited, except this location.
2025-01-15 20:09:25 +01:00
Laurent Destailleur (aka Eldy)
1b09d9abf6 Missing ip in list 2025-01-15 14:00:11 +01:00
Laurent Destailleur (aka Eldy)
cf62921762 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-15 13:01:03 +01:00
Laurent Destailleur (aka Eldy)
a5fe192125 FIX country id is not saved when we provide country_code only 2025-01-13 13:31:38 +01:00
Maxime Kohlhaas
ba2dab2a44 NEW : auto-detect country from code in creation (follow-up⁾ 2025-01-10 16:56:14 +01:00
Laurent Destailleur (aka Eldy)
802562a575 Fix regression after a fix 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
b024b95948 Fix typo 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
6250439309 Debug v21 2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
56710ce9b7 FIX CVE-2024-55227 and CVE-2024-55228 CSRF when
MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
on (hidden option not on by default)
2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
58e42656c0 Fix regression after a fix 2025-01-09 13:54:25 +01:00
Laurent Destailleur (aka Eldy)
8e551100a1 Fix typo 2025-01-09 01:41:24 +01:00
Laurent Destailleur (aka Eldy)
7f8295a30c Debug v21 2025-01-08 17:45:28 +01:00
Laurent Destailleur (aka Eldy)
c0250e4c91 FIX CVE-2024-55227 CSRF when MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
on (hidden option not on by default)
2025-01-08 17:41:45 +01:00
uvaldenaire-opendsi
c218eaa6ed fix join societe_commerciaux in societe list 2025-01-07 13:45:59 +01:00
Laurent Destailleur
3b605c2184 Debug v21 2025-01-07 10:43:45 +01:00
Regis Houssin
d443446838 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into
fix_20_wrong_value_of_socid
2025-01-06 13:53:22 +01:00
Josep Lluís
f91aadfe77 Force the sales representative if they don't have permissions
Force the sales representative if they don't have permissions
2024-12-31 02:50:08 +01:00
Laurent Destailleur
b579ff9cd8 Debug v21 2024-12-31 02:45:40 +01:00
Laurent Destailleur (aka Eldy)
5d0758c02c Debug v21 2024-12-30 00:57:03 +01:00
Laurent Destailleur (aka Eldy)
85547f7594 Debug v21 2024-12-30 00:50:33 +01:00
Charlène Benke
3b66d43771
FIX : no more needed with client/prospect checkbox feature
otherwise, the preselect is only customer checked (event on create prospect...)
2024-12-26 16:17:24 +01:00
Laurent Destailleur
27b8ac5eb4
Merge pull request #32461 from ems-co/20.0
FIX BUG #32454 (Third party creating vendor)
2024-12-23 23:50:44 +01:00
ems-co
7f00738618
Update card.php 2024-12-23 19:35:12 +03:00
Regis Houssin
40a36e8675 FIX "location_incoterms" is a string 2024-12-23 06:21:26 +01:00
Frédéric France
50d137a5ea
fix phpstan 2024-12-19 21:01:00 +01:00
Frédéric France
ee11925403
fix 2024-12-19 18:28:21 +01:00
Laurent Destailleur (aka Eldy)
8bab8f90c7 Debug v21 - Must use USF 2024-12-18 19:47:53 +01:00
Laurent Destailleur (aka Eldy)
5a88a40ed0 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-12-18 12:30:30 +01:00
Laurent Destailleur (aka Eldy)
f35c0115c5 Add MAIN_LIST_SHOW_REF_EXT to help debug 2024-12-18 12:29:57 +01:00
Frédéric France
f104e21658
fix phan and phpstan 2024-12-17 22:11:50 +01:00
Frédéric France
351897e9ce
fix phan and phpstan 2024-12-17 22:01:11 +01:00
Frédéric France
6623a3c23d
remove no more used code 2024-12-17 17:59:21 +01:00
Frédéric FRANCE
b2479ae74f
Update api_contacts.class.php 2024-12-17 15:06:06 +01:00
Laurent Destailleur (aka Eldy)
3fa0b65c0c Fix filter on contact 2024-12-17 13:33:29 +01:00
alsoft10
83fb45a6ba FIX#32391 2024-12-17 14:04:02 +05:30
Laurent Destailleur
bf59577fc6
Update list.php 2024-12-13 15:49:58 +01:00
Josep Lluís
5398ba8223
Force the sales representative if they don't have permissions
Force the sales representative if they don't have permissions
2024-12-10 13:16:57 +01:00
Laurent Destailleur (aka Eldy)
d542b21244 Debug v2 fix ufs for next_prev_filter 2024-12-10 11:54:33 +01:00
Laurent Destailleur
458579342a
Merge pull request #32210 from atm-maxime/detect_country_code
NEW : auto-detect country from code in creation
2024-12-05 16:28:33 +01:00
MDW
ec2a1928ba
Qual: Update fields phpdoc to include fields that are defined/used in some cases
# Qual: Update fields phpdoc to include fields that are defined/used in some cases

comment, copytoclipboard, autofocusoncreated are documented and used in some cases for the
$fields definition
2024-12-05 02:36:50 +01:00
Maxime Kohlhaas
c6e3ac592b Fix phpstan error 2024-12-04 15:12:38 +01:00
Maxime Kohlhaas
13bf82d9cd NEW : auto-detect country from code in creation 2024-12-03 11:31:04 +01:00
Regis Houssin
6aa70da43f FIX wrong "fournisseur" var value checking 2024-12-02 11:24:03 +01:00
Frédéric FRANCE
286c3d1093
fix sql ticket list (#32080)
* fix sql ticket list

* fix sql ticket list

* fix phpstan

* fix

* fix
2024-11-28 12:11:50 +01:00
Frédéric FRANCE
1b6ee9e654
fix phpdoc (#32097)
* fix phpdoc

* Update accountancycategory.class.php

* fix phpstan

* fix phpstan

* fix phpstan

* fix phan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-28 11:15:56 +01:00
Frédéric FRANCE
13b8f5feff
keep only commonobject property oldcopy (#32123)
* clean properties

* clean properties

* clean properties

* clean properties

* clean phpcs

* clean phan

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-27 21:59:41 +01:00
Laurent Destailleur
64540fe5f4 Fix regression 2024-11-26 19:34:05 +01:00
Laurent Destailleur
7a12b15376 Fix regression 2024-11-26 19:25:05 +01:00
Laurent Destailleur
456163c758 Debug v21 2024-11-25 15:05:48 +01:00
Laurent Destailleur
63ac936652 Fix add an order to have same behavior in using stripe customer account
event if data are corrupted with duplicate record.
2024-11-25 14:46:22 +01:00
Laurent Destailleur
bc83d330b6 Debug v21 2024-11-25 03:16:30 +01:00
Laurent Destailleur
627f81acd5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-11-24 14:01:36 +01:00
Frédéric FRANCE
75400611e1
fix phpstan (#32040)
* fix phpstan

* fix

* fix

* fix

* fix

* fix

* fix
2024-11-21 22:36:00 +01:00
Frédéric FRANCE
57d121664f
set object entity at create (#32019)
* set object entity at create

* set object entity at create

* set object entity at create

* set object entity at create

* set object entity at create

* set object entity at create

* do not break multicompany thing

* do not break multicompany thing

* missing translation

* fix phpstan

* doc

* fix entity

* fix set entity
2024-11-21 19:11:32 +01:00
Frédéric FRANCE
2ece62ec0d
fix phpstan (#31994)
* fix phpstan

* fix phpstan
2024-11-19 03:04:41 +01:00
Frédéric FRANCE
e0562817d6
fix usf filters (#31897) 2024-11-15 23:45:24 +01:00
Lucas Marcouiller
5b5719f0da
Fix societe price warnings (#31917)
* fix societe price warning

* fix a fix

---------

Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-11-15 23:04:00 +01:00
Lucas Marcouiller
eb8fcc8e73
fix php warning in societe list (#31837)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-11-15 14:34:37 +01:00
atm-jonathan
e20d1f0896
NEW multiselect search_sale in list societe (#29110)
* multiselect commerciaux

* retour Wysy

* retour pr

* retour PR

* retour PR

* retour PR

* retour PR

* retour PR

* retour PR

* count > 0

* GETPOSTISARRAY() $search_sale

* pre-commit

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-13 22:36:26 +01:00
Laurent Destailleur
b1e3830c3b Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-13 00:38:58 +01:00
Laurent Destailleur
a186903844 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-13 00:38:00 +01:00
Laurent Destailleur
4cd2e572ae Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-11-13 00:30:26 +01:00
uvaldenaire-opendsi
0eee1ad18b
Qual: remove php 8.2 warnings by casting trim() argument to string. (#28162) (#31693)
In create and update methods of societe class, the trim function triggered warnings when the argument passed is null.
Cast string properties to string to avoid php warnings when the property is null.

Co-authored-by: UltraViolet33 <93035200+UltraViolet33@users.noreply.github.com>
2024-11-12 19:45:52 +01:00
atm-lena
10e18da5d7
Develop new facture rec field societe rib management (#31698)
* Add field "fk_societe_rib" in llx_facture_rec

* Add field fk_societe_rib FactureRec

* Management of new field "Bank Account Customer" in facture rec

* Empty Value Management

* Change method of hide/show field

* Preselect RIB

* Rename function

* Edit structure formiban

* fix merge conflict

* Clean code

* clean code

* change translations

* default rib preselected in invoice rec create

* fix "=="

* Update card-rec.php

---------

Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-11 17:53:35 +01:00
Frédéric FRANCE
92ef950e6d
fix phpstan (#31761)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* hide new error with phpstan 1.12.9
2024-11-10 23:47:14 +01:00
Frédéric FRANCE
7ef1d270e7
fix phpstan in loan cards (#31758)
* fix phpstan in loan cards

* fix phpstan in loan cards

* fix phpstan in loan cards

* fix phpstan in loan cards

* fix phpstan in loan cards

* fix phpstan in loan cards

* fix phpstan in loan cards

* fix phpstan in cards
2024-11-10 17:55:36 +01:00
Frédéric FRANCE
15490b292f
fix phpstan and fix CI (#31739)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-11-10 11:16:23 +01:00
Laurent Destailleur
31f147622a The deprecated GET parameter "&sall=" has been removed, use now the
"&search_all=".
2024-11-07 12:26:42 +01:00
Laurent Destailleur
a3cd50944d Fix missing property 2024-11-07 03:25:04 +01:00
MDW
278d301f32
Qual: Fix phan/phpstan notices in class files (part 6) (#31634)
* Qual: Fix notices for paymentdonation...workstationusergroup.class

* Qual: Fix PhanPluginRedundantReturnComment, update baseline

* Qual: Complete array phpdoc for properties
2024-11-06 23:57:45 +01:00
Frédéric FRANCE
0d7bc505d3
add phpdoc and clean phpstan baseline (#31702)
* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline

* add phpdoc and clean phpstan baseline
2024-11-06 19:39:46 +01:00
Laurent Destailleur
4bdd848bbe Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-06 13:26:08 +01:00
Laurent Destailleur
46b80e85d4 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-05 17:29:08 +01:00