2
0
forked from Wavyzz/dolibarr
Commit Graph

8655 Commits

Author SHA1 Message Date
Laurent Destailleur
4432aaffcb Creation auto of bank account use correct bank journal 2024-10-17 04:51:28 +02:00
MDW
cee4535975 Qual: Fix phan notices in admin.lib and tax.lib + related (#31414)
* Qual: Fix admin.lib phpstan/phan notices

* Qual: Fix some argument types in Societe methods

* Fixup phpdoc

* Qual: Improve typing for static analysis

* Qual: Improve typing for static analysis

* Fix tax typing

* Qual: further phan/phpstan notice fixes in dol_generic_project_odt

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-17 03:08:38 +02:00
Laurent Destailleur
e8299da73f Merge branch 'develop' of github.com:Dolibarr/dolibarr into develop 2024-10-17 02:16:13 +02:00
Laurent Destailleur
8562dd887b Merge 2024-10-17 02:15:53 +02:00
Laurent Destailleur
dacbfecb02 Move trans into correct lang file 2024-10-17 02:12:49 +02:00
Michael Bussmann
6fca870750 EPC-QR,Sponge, Translation of INVOICE_ADD_EPC_QR_CodePay, Alignment (#31327)
* EPC_QR fixes
Display translation of INVOICE_ADD_EPC_QR_CodePay
Fixed alignment of INVOICE_ADD_EPC_QR_CodePay when QR-Code at bottom

* Reverted local font size

Signed-off-by: Michael Bussmann <bus@mb-net.net>

---------

Signed-off-by: Michael Bussmann <bus@mb-net.net>
2024-10-17 02:08:38 +02:00
MDW
33b9479692 Qual: Ignore phan notice for pagebreak property (#31427)
# Qual: Ignore phan notice for pagebreak property

The access to the undeclared pagebreak property is protected with isset().
So these notices are now suppressed.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-17 01:49:43 +02:00
MDW
9677a370e9 Qual: Nullable mysoc hint (#31393)
* Qual: Nullable mysoc hint

# Qual: Nullable mysoc hint

$mysoc can be nullable resulting in issues (#31387) so
it is best to detect these cases with static analysis

* Prevent null assignment
2024-10-17 01:44:54 +02:00
Laurent Destailleur
ce414d29d7 Fix phan 2024-10-17 01:23:23 +02:00
Frédéric FRANCE
64164dead6 missing translation close #31415 (#31432)
* missing translation

* missing translation

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-17 01:17:34 +02:00
Laurent Destailleur
82f65a6410 NEW Can choose the zip handler to build ODT 2024-10-17 00:31:53 +02:00
Laurent Destailleur
956a039082 Merge branch 'develop' of github.com:Dolibarr/dolibarr into develop 2024-10-16 20:47:12 +02:00
Laurent Destailleur
9ad71b980a NEW Can choose the zip handler to build ODT 2024-10-16 20:46:52 +02:00
Laurent Destailleur
e57ba5aa16 Fix phan 2024-10-15 17:30:07 +02:00
Laurent Destailleur
04ea424979 Removed not used $langs 2024-10-15 16:35:21 +02:00
Laurent Destailleur
231a561712 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-15 14:22:46 +02:00
Laurent Destailleur
e731910ede Miscellaneous fix on PDf template (trans, position column, warning) 2024-10-15 14:14:07 +02:00
Laurent Destailleur
86a90692ef FIX Support for PDF_ADD_POSITION was not complete 2024-10-15 00:18:05 +02:00
Laurent Destailleur
530fb167a2 NEW Support option PDF_ADD_POSITION on shipment espadon template 2024-10-14 22:38:51 +02:00
Laurent Destailleur
9ed4894adc Doc 2024-10-14 22:12:00 +02:00
MDW
53cfbc35be Qual: Fix several phan & stan notices (#31308)
* Qual: Fix several phan & stan notices

# Qual: Fix several phan & stan notices

Several fixes in files while fixing UnknownClass notices

* Qual: Update prepare_head PHPDoc return types

# Qual: Update prepare_head PHPDoc return types

Provide detailed array return types for prepare_head functions.

* Fix new phan notice

* Better loadLangs typing and fix call to loadLangs

* Fix new issues (stats)

* Other fixes of new issues

* Qual: update phan baseline
2024-10-14 01:59:44 +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
Frédéric FRANCE
820333b02f fix variants sql init (#31319)
* fix variants sql init

* add setup

* add setup

* add setup

* update class

* update list

* update list

* update list

* update class

* fix typos

* fix translations

* fix html

* fix update

* fix sql

* fix extrafields

* fix extrafields
2024-10-13 21:08:55 +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
92c848d5bc Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-07 14:40:53 +02:00
Laurent Destailleur
58cc96cd33 QUAL All $conf->global->module->enabled are replaced with isModEnabled() 2024-10-07 14:40:29 +02:00
MDW
f4c91d5bb6 Qual: Fix phan/phpstan notices (#31297)
# Qual: Fix phan/phpstan notices

Fix several phan and phpstan notices.
2024-10-07 14:07:24 +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
9e9af80fe0 Fix regression 2024-10-05 18:33:36 +02:00
Laurent Destailleur
916a906d9b Enhance the csvclean to support the charset encoding 2024-10-05 14:51:45 +02:00
sonikf
a340018cec New: Hide Down payment invoice mask when condition is met (#31270) 2024-10-04 17:35:23 +02:00
Laurent Destailleur
3de47bc129 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-04 11:48:52 +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
e09d9df3ee QUAL Move function csvClean into functions2.lib.php 2024-10-03 21:36:39 +02:00
MDW
1834c37c16 Qual: Fix phan notices (#31212)
* Qual: Fix phan notices

# Qual: Fix phan notices

Fix several phan notices related to classes with UnknownObject
classes.

* Qual: Fix phan notices

* Qual: Fix phan notices

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-03 19:40:34 +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
22944a2440 Code comment 2024-10-03 02:56:34 +02:00
Laurent Destailleur
a3073a8c5c Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-03 00:07:36 +02:00
Laurent Destailleur
b37773cf94 Fix mutitenant MS oauth 2024-10-03 00:05:33 +02:00
Laurent Destailleur
ae7902c6ba Add hidden option CONTRACT_HIDE_MYCOMPANY_SIGNATURE_SECTION_PDF 2024-10-02 18:19:45 +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
83cf2c8c57 FIX OAuth generation of token for Microsoft, Stripe and Generic 2024-10-01 21:53:45 +02:00
Anthony Berton
3e76477922 NEW - Add an advanced permission to validate knowledge (#30855)
* Add perms validate knowladge

* Perms advanced

* FIX

* Fix to massaction list

---------

Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-30 10:15:40 +02:00
Laurent Destailleur
1754ee61d5 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-29 22:49:02 +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
Laurent Destailleur
c8d86f8a56 FIX List of payment must be visible event they exists even if total=0 2024-09-29 20:32:09 +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
Francis Appels
1ee85e5483 Improve new hook afterPDFTotalTable to have posy parameter (#31168)
* Improve new hook afterPDFTotalTable to have posy parameter

* Also for other model
2024-09-28 12:11:29 +02:00