Commit Graph

9607 Commits

Author SHA1 Message Date
Frédéric FRANCE
46925fad15
Merge branch 'develop' into phpstan_doc_ui 2024-11-28 18:15:24 +01:00
Laurent Destailleur (aka Eldy)
8f7810a06b Debug v21 2024-11-28 13:40:38 +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
7b16039084
fix test (#32110) 2024-11-27 18:02:59 +01:00
Laurent Destailleur
4d3a42a219 Debug v21 2024-11-26 16:34:17 +01:00
Frédéric France
8a50ddaf92
restore code 2024-11-26 08:12:27 +01:00
John BOTELLA
c642396dca Add List of usable icons with img_picto function 2024-11-23 18:26:40 +01:00
John BOTELLA
469baa0b5b remove double 2024-11-23 17:53:12 +01:00
Frédéric France
c272a1242c
can set ace editor to readonly 2024-11-23 14:19:29 +01:00
Frédéric France
49846ca149
use ace editor to display source code 2024-11-23 13:34:37 +01:00
Frédéric France
793ca01867
clean baseline 2024-11-23 12:57:30 +01:00
Frédéric France
e285982eae
clean baseline 2024-11-23 12:52:07 +01:00
Frédéric France
4a300cfdf0
clean baseline 2024-11-23 12:50:49 +01:00
Frédéric France
649051be6f
clean baseline 2024-11-23 11:24:51 +01:00
Frédéric France
ecd9038305
fix phpstan doc ui 2024-11-23 11:14:13 +01:00
Frédéric France
7c4ddc4c3c
fix phpstan doc ui 2024-11-23 11:07:41 +01:00
Frédéric France
a5dde7fe83
fix phpstan doc ui 2024-11-23 10:53:07 +01:00
Frédéric France
f3abc3825f
fix phpstan doc ui 2024-11-23 10:38:30 +01:00
John BOTELLA
0cb35d5b03 New doc for icon list 2024-11-23 09:15:34 +01:00
Laurent Destailleur
1d1f822603 debug v21 2024-11-21 22:52:50 +01:00
Laurent Destailleur
4bc1eebcb5 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-21 12:47:48 +01:00
Laurent Destailleur
9a5aea09da FIX Debug option not working replaced by the one that works. 2024-11-21 12:33:23 +01:00
Laurent Destailleur
4c95fa2ac6 Fix clean a bugged option duplicated at wrong place in setup 2024-11-21 10:14:43 +01:00
Laurent Destailleur
22da15fc6a Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-20 23:30:16 +01:00
HENRY Florian
88a1eadfc7
fix: php warning (#32020)
* fix: php warning

* fix php warning

* fix php warning
2024-11-20 19:50:07 +01:00
Frédéric FRANCE
daae68f9d3
Fix phpstan (#32005)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-11-19 21:02:05 +01:00
Laurent Destailleur
93ec6f9ef7 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-19 13:02:26 +01:00
Laurent Destailleur
423cc7b845 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-19 12:41:22 +01:00
Laurent Destailleur
023856cf73 FIX #31997 2024-11-19 12:40:23 +01:00
Laurent Destailleur
1386d8c388 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-11-19 04:21:29 +01:00
Laurent Destailleur
a8ffb794a5 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-19 04:04:26 +01:00
Laurent Destailleur
e9e1175134 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-19 04:04:10 +01:00
Frédéric FRANCE
fd365c3f45
fix warning close #31975 (#31993)
https://github.com/Dolibarr/dolibarr/issues/31975

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-19 03:32:55 +01:00
Laurent Destailleur
2d08d89d55 Trans 2024-11-18 13:58:29 +01:00
Laurent Destailleur
a746c6aab0 Show a legal warning when enabling online signature 2024-11-18 13:20:55 +01:00
Laurent Destailleur
d9d97c4eb3 Add a lega linformation on online signature 2024-11-18 12:52:49 +01:00
Laurent Destailleur
e44bf58203 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-18 12:19:43 +01:00
Laurent Destailleur
e06bf7c145 Clean code 2024-11-18 12:19:17 +01:00
Laurent Destailleur
07bd12717a Fix look and feel v21 2024-11-18 12:15:47 +01:00
Benoît PASCAL
bcf7031a04 fix: declare entity before using it 2024-11-16 17:32:30 +01:00
Benoît PASCAL
0bac63ffbc feat: add entity in custom translation with multicompany 2024-11-16 17:16:37 +01:00
Sami Filali
fac36d2376
add hook (#31938) 2024-11-16 14:51:24 +01:00
lvessiller-opendsi
a0eb5515a8
FIX help on PDF condition of sales (#31879) 2024-11-16 00:07:47 +01:00
lvessiller-opendsi
0fa956ab87
FIX help on PDF condition of sales for customer order (#31892) 2024-11-15 23:50:49 +01:00
MaximilienR-easya
d8fb72a027
Fix a missing help (#31901) 2024-11-15 23:05:24 +01:00
Frédéric FRANCE
ec91ed2af9
test action (#31815)
* NEW : Add category feature on Fichinter

category update

* Update viewcat.php

* Update categories.lang

* Update categorie.class.php

* Update categories.lang

* Update viewcat.php

* Update viewcat.php

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* clean baseline

Debug v21

NEW: use Expedition::$date_shipping property in card and list (#31701)

* NEW: use Expedition::$date_shipping property in card and list

* FIX: translation

* FIX: PHPStan rebutal

* FIX: not a great idea to copy and not edit comment

* FIX: on create, expected delivery date should precede sending date

* Update card.php

* Update list.php

* Update list.php

* Update list.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>

clean baseline

clean baseline

clean baseline

* clean baseline

* clean baseline

* merge

* fix

* fix

* fix

* fix

* fix

* fix

* fix translations

* fix translations

* fix translations

* fix translations

* fix

* fix filters

* fix filters

* fix filters

* fix filters

* fix

---------

Co-authored-by: Charlène Benke <1179011+defrance@users.noreply.github.com>
2024-11-15 14:09:04 +01:00
Laurent Destailleur
7b631480e3 Debug v21 2024-11-14 01:20:08 +01:00
Anthony Damhet
11057faac8
WIP : Documentation ux (#30735)
* Move documentation files to new folder

* Documentation prototype

Create a documentation class and views

* Remove whitespace and add functions returns

* Remove Google fonts

* Remove return string

* Phpcbf corrections

* Phpcdf with good ruleset

* add return null

* resolve conflict with test_arrays.php

* Return void for print functions

* WIP progress bar

* Add seteventmessage documentation for ui/ux

* Add translations

* Delete is of button

* Clean titles

* Change name of file event-message.php

* Update before moving and rename files

* Remove fr_FR lang file (all in en_US for the moment)
* Add some css
* Menu definition updated
* Add jQuery, lib_head.js and lib_foot.js

* Add missing button

* Add missing button

* move ui doc files

* Remove old documentation files

* Reupload test_arrays.php

* Rename lang file

* Move lang file

* add htmlhead

* Add parameter comment

* Update tables.php

* Update uxdocumentation.lang

* Update tables.php

* Update uxdocumentation.lang

* Update progress-bars.php

* Update tables.php

---------

Co-authored-by: John BOTELLA <68917336+thersane-john@users.noreply.github.com>
Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-14 01:00:14 +01:00
Laurent Destailleur
fc7d1c6553 Fix phan 2024-11-13 23:22:26 +01:00
sonikf
1f2bb2969a
NEW: PDF Invoice show vat analysis per rate (#31381)
* Show vat analysis

* Show vat analysis

* Show vat analysis

* fix white space

* Update main.lang

* Show vat analysis

* Show vat analysis

* add copyright

* fix pre-commit

* fix pre-commit

* fix pre-commit

* fix php-stan (8.2)

* fix php-stan (8.2)

* fix php-stan (8.2)

* fix pre-commit tab

* Update pdf_other.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-13 22:41:00 +01:00
Frédéric FRANCE
98c92337f1
Update security.php (#31777)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-12 13:46:13 +01:00
lvessiller-opendsi
6c9c177763
NEW VAT by state (#31628)
* NEW VAT by state

* Fix global conf in looad tva function

* Fix load vat rates in memory

* Revert fk_tva column in state dict and load_tva function

* NEW vat rate with department in dict

* Fix isset not nullable

* Fix order VAT rate desc to set as default
2024-11-11 17:57:32 +01:00
MDW
9ec4618199
Qual: Fix FunctionArray phan notices (#31754)
* Qual: Fix FunctionArray phan notices

* Fix class name in typing of htdocs/modulebuilder/index.php

* Fix customreports phpdoc

* Adjust file type after completeFileArrayWithDatabaseInfo

* Further phpdoc typing improvements

* More phpdoc

* Improve typing with cast on position field

* Force phpstan version

* Add phpstan exception

* Fix array index type + adjust phan config comment
2024-11-11 14:48:18 +01:00
Frédéric FRANCE
661059ca9a
fix phpstan (#31763)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-11 14:33:53 +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
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
c1891c7886 Debug v21 2024-11-09 17:00:48 +01:00
Laurent Destailleur
254c15fae1 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-09 15:55:41 +01:00
Laurent Destailleur
51f21e9901 Fix token 2024-11-08 16:39:25 +01:00
Laurent Destailleur
6f410e2e67 Clean code 2024-11-08 15:24:58 +01:00
Laurent Destailleur
b232bb8d45 Debug v21 2024-11-08 14:21:52 +01:00
Alexandre SPANGARO
4cc154293e
Fix language key (#31726)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-08 02:48:37 +01:00
Frédéric FRANCE
41a4f42b31
add phpdoc and clean phpstan baseline (#31717)
* 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

* add phpdoc

* add phpdoc
2024-11-07 17:31:40 +01:00
Laurent Destailleur
51117eea91 Clean code 2024-11-07 15:49:49 +01:00
Laurent Destailleur
d756c4dc27 NEW Add hook getLoginPageExtraContent, getPasswordResetPageExtraContent
and getPasswordForgottenPageExtraContent.
2024-11-07 15:40:14 +01:00
Laurent Destailleur
5f292a4e85 Fix phan 2024-11-07 15:02:12 +01:00
Laurent Destailleur
c79138b892 Debug v21 2024-11-07 14:00:16 +01:00
Laurent Destailleur
e478f72d2b debug v21 2024-11-07 13:06:45 +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
thomas-Ngr
9374a31b33
Fix const INVOICE_USE_RETAINED_WARRANTY (#30533)
* Fix const INVOICE_USE_RETAINED_WARRANTY being set as -1 when it should be empty

* fix missing translation

* fix missing translation

* Manage update for INVOICE_USE_RETAINED_WARRANTY

* use native setAsSelect() form function
2024-11-07 05:14:07 +01:00
Laurent Destailleur
f785de0f96 Fix phan 2024-11-07 04:39:04 +01:00
Anthony Berton
a5e1f09043
NEW - Add terms of sale on documents (#24846)
* NEW -  Add terms to sale on documents

* FIx

* Move in pdf other

* Change termstosale in termsofsale

* Copy

* Update admin.lang

* Update pdf_other.php

* // Terms to sale

* Update pdf_other.php

* Update pdf_einstein.modules.php

* Update pdf_eratosthene.modules.php

* Update pdf_crabe.modules.php

* Update pdf_sponge.modules.php

* Update pdf_azur.modules.php

* Update pdf_cyan.modules.php

* Update societe.class.php

* Clean

* Update pdf_other.php

---------

Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-07 03:20:49 +01:00
Laurent Destailleur
0e55db7caf WIP Captcha architecture 2024-11-06 23:02:46 +01:00
Laurent Destailleur
84c343cada WIP Captcha module architecture 2024-11-06 22:15:25 +01:00
Laurent Destailleur
b03684c0ee Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-06 20:17:28 +01:00
Laurent Destailleur
13ce7cfd04 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-11-06 20:17:14 +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
VIAL-GOUTEYRON Quentin
bc8d443898
FIX: Corrected typo preventing data from being saved (#31716)
* FIX: Corrected typo preventing data from being saved

* fix missing length
2024-11-06 19:18:24 +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
141755fa17 Add more code to help debug 2024-11-06 13:20:25 +01:00
Laurent Destailleur
71cde0e95f Look and feel v21 2024-11-05 19:18:06 +01:00
Frédéric FRANCE
1adc883b56
add baseline exclude for phpstan (#31632)
* add baseline exclude for phpstan

* update

* update

* update

* update

* update

* merge

* restore one filter

* delete old errors

* fix

* fix

* fix

* $moreforfilter can t be empty

* fix

* enable check

* refresh baseline

* add phpdoc

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
Laurent Destailleur
7a74831be4 Fix phan 2024-11-04 16:38:11 +01:00
Laurent Destailleur
7e6a41bbd9 Share common code 2024-11-04 13:56:05 +01:00
MDW
e7539f2e19
Qual: Fix notices in .lib.php files (#31672)
* Qual: Fix notices in .lib.php files

* Update wrapper.php

* Update availabilities_card.php

* Update index.php

* Update document.controller.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 12:32:13 +01:00
Laurent Destailleur
2e89306a21 Look and feel v21 2024-10-30 18:46:04 +01:00
thomas-Ngr
c396a08cb2
fix const WORKFLOW_RECEPTION_CLASSIFY_CLOSED_INVOICE (#31601)
* rename const WORKFLOW_EXPEDITION_CLASSIFY_CLOSED_INVOICE to WORKFLOW_RECEPTION_CLASSIFY_CLOSED_INVOICE

* edit wrong SQL erquest
2024-10-29 17:34:30 +01:00
Laurent Destailleur
d9a5636b77 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-29 15:55:42 +01:00
Laurent Destailleur
3caead1dc0 Help debug with button "Refresh token" 2024-10-29 13:01:14 +01:00
Laurent Destailleur
09668af4f4 Work on generic captcha architecture 2024-10-28 03:06:35 +01:00
Laurent Destailleur
34eb56ba53 Removed the deprecated page MAIN_HELPCENTER_DISABLELINK 2024-10-28 02:07:37 +01:00
Laurent Destailleur
3baa3c85ad css 2024-10-27 23:05:23 +01:00
Laurent Destailleur
cb0ab53709 Look and feel v21 2024-10-27 14:08:59 +01:00
Laurent Destailleur
c41274dbd1 Debug v21 2024-10-26 21:09:09 +02:00
MDW
67e9eaff46
Qual: Fix phan/phpstan notices in class files (part 2) (#31523)
* Qual: Fix phan notices in class files (part 2)

* Qual: Fix phan notices doleditor...events.class

* Qual: Fix phan notices defaultvalues...formprojet.class

* Qual: Fix notices formsetup...formwebsite.class

* Qual: Fix phan notices in class files (part 2)

* Qual: Fix phan notices doleditor...events.class

* Qual: Fix phan notices defaultvalues...formprojet.class

* Qual: Fix notices formsetup...formwebsite.class
2024-10-26 18:24:40 +02:00
Laurent Destailleur
3d49587253 Clean setup of ckeditor 2024-10-26 16:40:40 +02:00
Laurent Destailleur
9396be1dbc Clean ckeditor setup 2024-10-26 16:22:05 +02:00
Frédéric FRANCE
17e69f8a21
fix phpstan (#31565)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-10-26 13:03:52 +02:00
Laurent Destailleur
ea64d0baa0 Debug the list of print jobs 2024-10-25 19:05:51 +02:00
Alexandre SPANGARO
0bccfde432
NEW PDF - Add Customer accountancy code (#31544) 2024-10-25 13:43:35 +02:00
Frédéric FRANCE
331c5e9f4b
fix phpstan (#31547)
* fix phpstan

* fix phpstan

* fix phpstan
2024-10-25 13:24:10 +02:00
Laurent Destailleur
86b229f120 css 2024-10-24 20:40:09 +02:00
Laurent Destailleur
8bae2d99d8 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-24 20:13:12 +02:00
Laurent Destailleur
a17d26665c Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-10-24 20:08:28 +02:00
Laurent Destailleur
808d5ee169 NEW Add a tool to decrypt data encrypted in database. 2024-10-24 15:34:02 +02:00
Laurent Destailleur
2b0859cbe4 Trans 2024-10-24 14:13:25 +02:00
Laurent Destailleur
8abfcf71a9 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-10-24 13:54:13 +02:00
Laurent Destailleur
3bc1d35236 QUAL The property ->domiciliation and ->propio on bank accounts has been
deprecated and replaced with property ->address and ->owner_name
2024-10-24 12:38:41 +02:00
MaximilienR-easya
dcf708d7f4
NEW #31103 (#31516)
* New ticket admin configuration of the auto assign option

* Change to correspond the PR ##31140
2024-10-23 20:47:44 +02:00
sonikf
710905470b
fix translation for non latin languages (#31473) 2024-10-20 00:11:53 +02:00
Laurent Destailleur
37880a7964 Debug v21 2024-10-19 23:42:26 +02:00
Laurent Destailleur
1d7169d051 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-10-19 20:48:41 +02:00
Laurent Destailleur
4a00350859 Fix test on malware 2024-10-19 20:48:05 +02:00
Laurent Destailleur
560829cacf Fix test on malware 2024-10-19 20:46:10 +02:00
Laurent Destailleur
b30798a2eb Test 2024-10-19 20:26:15 +02:00
Laurent Destailleur
786291506a WIP: Feature to report malware 2024-10-19 15:16:50 +02:00
Laurent Destailleur
c70973c0c8 Merge v20 2024-10-19 14:44:55 +02:00
Laurent Destailleur
a294cadcc1 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-10-19 14:33:05 +02:00
Laurent Destailleur
17c50368c1 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-10-19 14:32:08 +02:00
Laurent Destailleur
85f1338b19 Fix var_dump 2024-10-19 14:29:59 +02:00
Laurent Destailleur
0844ed2f9b NEW Include a protection into check update to detect malware 2024-10-19 13:16:13 +02:00
Laurent Destailleur
2e12ab4b65 Clean code 2024-10-19 11:39:56 +02:00
Laurent Destailleur
56a845963e NEW Can set border radius of list and tables 2024-10-18 17:11:25 +02:00
UltraViolet33
e8f1c47424
NEW: default configuration for event reminder (#31407)
* NEW: default configuration for event reminder

Set default reminder period + default email template for specific event types in agenda configuration.
Auto fill the notification event form on event creation when event type is in the event types set to use default reminder

* fix for ci

* fix offset value

---------

Co-authored-by: Ulysse Valdenaire <uvaldenaire@easya.solutions>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-17 03:13:44 +02:00
Laurent Destailleur
7f9759aa81 Maxi debug of the email notification feature an dlook and feel v21 2024-10-15 20:28:05 +02:00
Laurent Destailleur
10c58950bb Look and feel v21 2024-10-15 10:16:48 +02:00
Laurent Destailleur
2a2f1808e6 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-15 00:26:51 +02:00
Laurent Destailleur
4972c57a82 FIX Bad balance of td into setup page of shipments 2024-10-15 00:26:13 +02:00
Laurent Destailleur
fad083e29b Debug layout feature for v21 2024-10-14 23:38:14 +02:00
Laurent Destailleur
187a4d477d NEW Add advice for max size on list for better performance 2024-10-14 19:52:05 +02:00
Alexandre SPANGARO
5dfe870c4c
NEW Invoice - Generate payment information - Structured communication (#31376)
* NEW Invoice - Generate payment information - Structured communication

* fix tabs/space

* Add $substitutionarray['__PAYMENT_STRUCTURED_COMMUNICATION__']

* Fix travis

* Move to specific file functions_be.lib.php

* Fix function use

* Fix code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-14 01:39:03 +02:00
Laurent Destailleur
9dce6c7689 Merge 2024-10-14 01:33:15 +02:00
Laurent Destailleur
a45af7e4c4 Fix responsive 2024-10-11 19:41:31 +02:00
Yannis Hoareau
42089e3542
New: add configuration to choose if holiday are updated at the end of month (#29438)
* New setting for holiday updates

* FIX: holidays accounting at the end of taken month: log consumption for every request + update translations

* FIX: holidays accounting at the end of taken month: update conf name

* FIX: holidays accounting at the end of taken month: refactor monthly cron update

* FIX: holidays accounting at the end of taken month: update conf translation

* FIX: holidays accounting at the end of taken month: initialize holiday array + delete duplicate code

* New setting for holiday updates

* FIX: holidays accounting at the end of taken month: log consumption for every request + update translations

* FIX: holidays accounting at the end of taken month: update conf name

* FIX: holidays accounting at the end of taken month: refactor monthly cron update

* FIX: holidays accounting at the end of taken month: update conf translation

* FIX: holidays accounting at the end of taken month: initialize holiday array + delete duplicate code

* FIX: holidays accounting at the end of taken month: clean code

* FIX: holidays accounting at the end of taken month: empty now used on variables

* FIX: holidays accounting at the end of taken month: resolve not casted var in sql request

* FIX: holidays accounting at the end of taken month: now using only dolibarr functions

* FIX: holidays accounting at the end of taken month: fix php-stan and rework casting to int

* FIX: holidays accounting at the end of taken month: fix php-stan and rework casting to int (2)

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: Yannis Hoareau <93135242+JustRaosha@users.noreply.github.com>
2024-10-10 00:13:36 +02:00
Laurent Destailleur
e79292cb19 Enhance vat edition 2024-10-08 09:59:46 +02:00
sonikf
35e01459f8
NEW: PDF Add shipping address in sales orders (#31293)
* Add shipping address

* Add shipping address

* Show shipping address in sales orders

* Add shipping address option in sales orders

* fix pre-commit

* fix phan

* fix phan php-stan (8.2)

* fix phan php-stan (8.2)

* fix phan php-stan (8.2)

* fix phan php-stan (8.2)

* fix php-stan (8.2)

* fix phan php-stan (8.2)

* fix phan php-stan (8.2)
2024-10-07 14:50:01 +02:00
Laurent Destailleur
2737f713d9 Debug v21 2024-10-07 11:58:32 +02:00
MDW
34e3717dda
Qual: Fix phan/phpstan notices (#31289)
* Qual: Fix phan/phpstan notices

# Qual: Fix phan/phpstan notices

Fix several phan/phpstan notices

* Fix spelling in Changelog
2024-10-06 13:03:43 +02:00
MDW
f70c945931
Qual: Fix phan/stan notices (#31271)
# Qual: Fix phan/stan notices in relation with UnknownObjectMethodCall

Fix notices in classes with UnknownObjectMethodCall notices or classes
related with these.
2024-10-05 18:55:36 +02:00
Laurent Destailleur
70484d99a4 Setup help 2024-10-04 17:49:05 +02:00
sonikf
c5587519f0
NEW: PDF Add option to print rounded corner frames (#31172)
* NEW: Add option to enable PDF frame rounded corners

* NEW: function printRoundedRect

* NEW PDF frame rounded corners

* New add rounded corners in frames

* New add rounded corners in frames

* Update admin.lang

* fix incoterm frame height

* Update pdf_sponge.modules.php

* fix pre-commit

* fix pre-commit

* fix php-stan (8.2)

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* fix phan php-stan (8.2) declare property

* New add rounded corners in frames

* New add rounded corners in frames

* add phpdoc for corner radius

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* fix php-stan (8.2)

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* fix whitespace

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* fix pre-commit empty line

* fix phan php-stan (8.2)

* fix phan php-stan (8.2)

* fix Travis

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan phpdoc

* fix pre-commit

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-04 09:13:44 +02:00
Laurent Destailleur
e426c94735 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-03 15:55:24 +02:00
Laurent Destailleur
28084d898f Fix error management 2024-10-03 15:55:01 +02:00
Laurent Destailleur
3798957095 Avoid warning 2024-10-03 15:54:30 +02:00
Laurent Destailleur
94173c9a9a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-10-03 15:51:55 +02:00
Laurent Destailleur
42471decac Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-03 15:50:44 +02:00
Laurent Destailleur
2d9399d0db Fix phan 2024-10-03 15:47:03 +02:00
Frédéric FRANCE
7d36fe0715
fix typo phan and Co 💊 (#31214)
* fix typo

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* translation missing

* test win mariadb version

* test win mariadb version

* phpdoc

* phpdoc

* phpdoc
2024-10-03 15:43:04 +02:00
Laurent Destailleur
2c4e4a57a8 Clean code 2024-10-03 12:35:06 +02:00
Laurent Destailleur
c955ab06e7 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-03 01:07:09 +02:00
Laurent Destailleur
52616db1b7 Fix mutitenant MS oauth refresh 2024-10-03 01:06:44 +02:00
Laurent Destailleur
30c3ffa9dd Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-02 21:43:15 +02:00
Laurent Destailleur
50d2613124 Fix use of OAUTH for SMTP use with Microsoft 2024-10-02 21:25:21 +02:00
Laurent Destailleur
b87b0b92b8 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-02 17:31:42 +02:00
Laurent Destailleur
4361da7e2b Fix responsive 2024-10-02 11:04:04 +02:00
Laurent Destailleur
83cf2c8c57 FIX OAuth generation of token for Microsoft, Stripe and Generic 2024-10-01 21:53:45 +02:00
Laurent Destailleur
6b2fa56d52 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-01 15:01:18 +02:00
Laurent Destailleur
075d0dee3c FIX Selection of country - state in resource 2024-10-01 14:27:45 +02:00
Laurent Destailleur
925f3cd8bb Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-01 13:35:43 +02:00
Laurent Destailleur
072b3e7022 Fix empty value on combo to select types 2024-10-01 12:29:59 +02:00
Laurent Destailleur
23b138ddd0 Better readability of message 2024-10-01 10:52:59 +02:00
Laurent Destailleur
1e14b3b012 Typo 2024-10-01 10:47:06 +02:00
Laurent Destailleur
0dee5ee8b2 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-01 10:20:35 +02:00
Laurent Destailleur
acf002e7f7 Fix phpunit 2024-10-01 10:20:05 +02:00
Laurent Destailleur
7db2cf1c64 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-01 10:09:27 +02:00
Laurent Destailleur
d10f69226f Fix phpunit 2024-10-01 10:08:16 +02:00
Laurent Destailleur
764c97765a css 2024-10-01 03:43:27 +02:00
Laurent Destailleur
f57b4f26b4 Look and feel v21 2024-10-01 03:41:55 +02:00
Laurent Destailleur
471668b940 FIX Toolt to convert utf8mb4 2024-09-30 23:12:01 +02:00
Laurent Destailleur
4a3d081dca FIX Toolt to convert utf8mb4 2024-09-30 23:11:31 +02:00
Laurent Destailleur
b5c6ead33b FIX Tool to convert into utf8 2024-09-30 20:24:03 +02:00
Laurent Destailleur
048072d3db FIX Tool to convert into utf8 2024-09-30 20:23:27 +02:00
Laurent Destailleur
2c518be378 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-30 20:10:47 +02:00
Laurent Destailleur
f36dc403bc Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-09-30 20:08:39 +02:00
Laurent Destailleur
f25e1c5b2b Add info to help debug collation pb 2024-09-30 20:05:31 +02:00
Laurent Destailleur
cdbcd7df58 FIX tool to convert into utf8mb4 2024-09-30 19:50:39 +02:00
Laurent Destailleur
6f7b0c1815 NeW Can add the info messages (error, waring...) at the top of the stack 2024-09-30 14:30:28 +02:00
lamrani abdelwadoud
0ec1d2b750
Add token oauth for social network (#30813)
* Add token oauth for social network

* Fix phpstan errors

* Fix phpstan errors

* variable undeclared and phan errors

* variable undeclared and phan errors

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-29 22:36:08 +02:00
MDW
42bb4fbf3e
Qual: Enable & fix or ignore Invalid DimOffset (#31176)
* Qual: Enable & fix or ignore Invalid DimOffset

# Qual: Enable & fix or ignore Invalid DimOffset

The Invalid DimOffset notices occur when array keys are defined and
the index used is not amongst the known array keys.

This PR enables these notices and fixes array definitions when needed,
or ignores the notices locally if it's a false positive, or in the
baseline.txt when it does not seem to be a false positive so that
it can be fixed later

* Nullable object typing in function signature not ok for 7.0/8.4

Can't user '?User' as argument type for PHP7.0 which is required by PHP8.4.
Therefore, removing the typing specification in the function definition

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-29 21:52:31 +02:00
Frédéric FRANCE
0a9142661f
add phpdoc (#31175)
* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* fix broken doc

* fix broken doc

* fix

* fix

* fix

* fix

* fix

* fix
2024-09-29 03:10:45 +02:00
Frédéric FRANCE
0e1292e253
fix phpstan (#31177)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-29 02:49:34 +02:00
MDW
0da4d51003
Qual: Fix multiple phan notifications (#31151)
* Qual: Fix notifications multiple files

# Qual: Fix notifications multiple files

Fixes to files with UnknownObject notices, fixing other
notices in these files as well

* Improve boxes typing

* Qual: Extend accepted types to reduce notices

* Fix type for GET/POST arguments of GETPOST* calls
2024-09-28 12:09:35 +02:00
Laurent Destailleur
84183adaaa WIP Captcha 2024-09-27 19:31:28 +02:00
lamrani abdelwadoud
5c43f600ef
New function for Hide other params when choose Oauth (#31108)
* Add token oauth for social network

* Fix phpstan errors

* Fix phpstan errors

* variable undeclared and phan errors

* variable undeclared and phan errors

* reformat script and add function for hide other params

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-26 22:33:22 +02:00
Frédéric FRANCE
c4074310bb
fix phpstan (#31147)
Variable $optioncss in isset() always exists and is not nullable.
2024-09-26 22:23:08 +02:00
lamrani abdelwadoud
c4ffa090b2
New redirect when deploy module (#31109)
* New redirect when deploy module

* initialize variable

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-26 17:43:23 +02:00
MDW
ec07381f2c
Qual: More specific ignoreErrors for phpstan (#31113)
* Qual: More specific ignoreErrors for phpstan

# Qual: More specific ignoreErrors for phpstan

More specific ignore expressions helps identify new exceptions that
would have matched the more generic ignore expressions.

It also helps to progressively solve phpstan notices
in smaller steps by modifying the expressions

* CamelCase for dictFieldList

* Update phan baseline
2024-09-26 17:42:40 +02:00
Laurent Destailleur
f966523f79 Restore default pdf format to default 2024-09-26 04:37:44 +02:00
Laurent Destailleur
bb1b2e9452 Fix phan 2024-09-25 23:52:19 +02:00
Laurent Destailleur
b32225283d Merge branch '20.0' of github.com:Dolibarr/dolibarr into develop 2024-09-25 22:32:36 +02:00
Frédéric FRANCE
a94cff63a7
fix phpstan (#31102)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-25 22:21:31 +02:00
Laurent Destailleur
59dadd88a3 FIX Duplicate trigger printFieldPreListTitle 2024-09-25 13:43:11 +02:00
Laurent Destailleur
6bd128071b NEW Default PDF format is PDF/A-3 2024-09-25 12:48:23 +02:00
sonikf
0e590151a0
fix #31089 (#31092) 2024-09-23 15:01:53 +02:00
Frédéric FRANCE
000173c7b9
fix phpstan (#31075)
* 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

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-23 01:59:14 +02:00
MDW
7b4c4d772c
Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086)
* Qual: Fix Array of tabs typing hints

# Qual: Fix Array of tabs typing hints

Fixed same typing hints accross several files

* Qual: Fix pdf.lib.php, project.lib.php and related files

# Qual: Fix pdf.lib.php, project.lib.php and related files

Fix most phan notices for pdf.lib.php and project.lib.php.
And fixed some items in other files in the process

* Qual: Fix notifications commande/card advtarget.tpl fichinter/card societe/card supplier_proposal/card

* Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related

# Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related

Fix notices in the files for the classes above and other files to accomodate
these changes/fixes
2024-09-23 00:37:30 +02:00
Frédéric FRANCE
f6776541b6
Fix ignored phpstan (#31009)
* fix phpstan

* fix phpstan

* fix phpstan
2024-09-20 02:19:05 +02:00
MDW
4c7bcaa980
Qual: Fix argument mismatch for form_attach_new_file (#31014)
# Qual: Fix argument mismatch for form_attach_new_file

Use null instead of '' to match the argument type for form_attach_new_file.
2024-09-20 02:14:31 +02:00
Frédéric FRANCE
e252e36073
fix phpstan (#31024)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-20 01:45:17 +02:00
Laurent Destailleur
c340c34aeb FIX Hide a feature that is a security vulnerability. 2024-09-20 00:19:36 +02:00