Commit Graph

37795 Commits

Author SHA1 Message Date
Laurent Destailleur
d7d8f87045 Clean code. Add permission test after action = something. 2024-09-30 11:38:29 +02:00
Laurent Destailleur
61e8382869 Fix SERVICE_ARE_ECOMMERCE_200238EC #31159 in transfer of sale journal 2024-09-30 10:46:51 +02:00
Laurent Destailleur
79892e79e5 Removed init of context here. Contet must be initialized by parent
caller. You already can use 'globalcard' or 'main' for example...
2024-09-30 10:21:41 +02:00
Aloïs Micard
3da76f9536 Add a new hook into CommonObject#commonReplaceThirdparty (#30827) 2024-09-30 10:19:35 +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
MDW
8236aed22f Qual: Fix phan notices (#31193)
# Qual: Fix phan notices

Fix phan notices in several classes that have UnknownObjectMethod calls and classes
that had notices in relation with these classes
2024-09-30 10:05:24 +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
Laurent Destailleur
9eed19578a Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-09-29 22:42:49 +02:00
Laurent Destailleur
399a752c78 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-09-29 22:42:13 +02:00
Laurent Destailleur
97eacefa6b Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-09-29 22:41:54 +02:00
Laurent Destailleur
f5fbbcfcb8 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-09-29 22:40:45 +02:00
Frédéric FRANCE
4690f4aadb fix phpstan (#31192)
* fix phpstan

* fix phpstan
2024-09-29 22:33:33 +02:00
Frédéric FRANCE
d30d8b5201 fix phpstan (#31191)
* fix phpstan

* fix phpstan

* fix phpstan
2024-09-29 22:32:34 +02:00
Laurent Destailleur
2c67c8b6ff Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2024-09-29 22:32:01 +02:00
Laurent Destailleur
d0fb08adf4 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2024-09-29 22:31:42 +02:00
Laurent Destailleur
624493fb26 Merge branch '13.0' of git@github.com:Dolibarr/dolibarr.git into 14.0 2024-09-29 22:30:07 +02:00
Laurent Destailleur
6eddee9a78 Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 13.0 2024-09-29 22:29:19 +02:00
Laurent Destailleur
a27538f582 Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into 12.0 2024-09-29 22:27:42 +02:00
Florian Mortgat
385927fe06 FIX: box_actions.php still uses fk_user_done which no longer exists (#31190)
Co-authored-by: FlorianMortgat <5845502+FlorianMortgat@users.noreply.github.com>
2024-09-29 22:18:18 +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
138ffa3158 fix phpstan (#31181)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-29 21:49:52 +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
Laurent Destailleur
deda809dca FIX amount of payment in getListOfPayments for multicurrency mode 2024-09-29 20:16:41 +02:00
Laurent Destailleur
32646cb7f4 Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into 11.0 2024-09-29 19:25:49 +02:00
Laurent Destailleur
c5163d0d96 CSS 2024-09-29 17:31:46 +02:00
Florian Mortgat
74b67eb6c6 FIX - use price() to display qty on a product's stats tab to avoid showing too many decimals when rounding errors are possible (#31165) 2024-09-29 15:57:05 +02:00
Laurent Destailleur
aa7db1adf6 Doc 2024-09-29 15:29:24 +02:00
Florian Mortgat
231fc6ce70 FIX: if you call fetchLines several times, your $object->lines contains duplicates (#31167) 2024-09-29 15:27:24 +02:00
Laurent Destailleur
9e897b9dc6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-29 15:23:50 +02:00
Laurent Destailleur
48034bd031 WIP IPN for charge.dispute.funds_withdrawn 2024-09-29 15:23:24 +02:00
Frédéric FRANCE
cab697f557 fix phpstan (#31183)
* fix phpstan

* fix phpstan
2024-09-29 13:07:21 +02:00
Frédéric FRANCE
d154af4e41 fix phpstan (#31180)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-29 13:03:58 +02:00
Laurent Destailleur
885be61dbd Fix phan 2024-09-29 13:02:44 +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
Laurent Destailleur
fd9acdb94a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-29 03:09:01 +02:00
Laurent Destailleur
aa2f82531c Fix phpdoc 2024-09-29 03:08:29 +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
Laurent Destailleur
a423da6a4b CSS Look and feel v21 2024-09-29 01:20:02 +02:00
Laurent Destailleur
35ba9eed75 css 2024-09-28 18:52:26 +02:00
Laurent Destailleur
b69ae93f8d Prepare refactoring 2024-09-28 18:45:09 +02:00
Laurent Destailleur
6243891bb4 NEW Can link an object to another using the ref. Close #31001 2024-09-28 18:28:06 +02:00
Laurent Destailleur
b327e73ade NEW Can link an object to another using the ref. Close #31001 2024-09-28 18:24:58 +02:00
Laurent Destailleur
862ce222d9 Close #31001 2024-09-28 18:18:25 +02:00
Laurent Destailleur
f086d9ee3e QUAL Standardize name of user cookies 2024-09-28 15:18:46 +02:00
Laurent Destailleur
5f21a3a4e3 NEW The margin section can now be shown/hidden 2024-09-28 15:10:28 +02:00
Laurent Destailleur
9d275a3c8c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-28 13:06:18 +02:00
Laurent Destailleur
90f49fbd83 Try more complete fix for #31117 2024-09-28 13:05:24 +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
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
ac985a88e7 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-28 11:20:21 +02:00