Commit Graph

130281 Commits

Author SHA1 Message Date
Laurent Destailleur
4acf87f43d Fix warning 2024-02-21 12:46:20 +01:00
Laurent Destailleur
4431f44f6a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-21 12:40:38 +01:00
Laurent Destailleur
f66b8987ec Sync transifex 2024-02-21 12:40:11 +01:00
Laurent Destailleur
9294662bb5 QUAL Check lang files does not contains 'notranslate' 2024-02-21 12:21:44 +01:00
MDW
b343181789
Update phpunit.bat sample script and setup_conf.sh (#28307)
# Update phpunit.bat sample script and setup_conf.sh

- setup_conf.sh - Added caching feature;
- phpunit.bat - Example updated based on experience with php web server
2024-02-20 23:02:59 +01:00
Laurent Destailleur
7dd9a448cb Fix lang files and add phpunit test to avoid bad < 2024-02-20 22:53:59 +01:00
Laurent Destailleur
4fa736a6fa Fix closing tags 2024-02-20 20:59:46 +01:00
Jon Bendtsen
f336c648fd
error in </span> tag (#28316)
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2024-02-20 20:45:33 +01:00
MDW
db223a041f
Qual: Optimisation in load criteria (dol_dir_list) (#28263)
# Qual: Optimisation in load criteria (dol_dir_list)

By moving the "$sortcriteria" conditions into the load conditions, the
comparison between strings is less frequent.

The original test can probably even be removed as it is part of load_*.

The only side-effect that I can see is with the hook, but I think
in theory there should not be a negative side-effect, only a positive
one as this tells the hook to load the data we need without relying
on the hook to make the proper interpretation of the searchcriteria.
2024-02-20 19:36:30 +01:00
William Mead
c3538ca361
Clean function addlink parameter (#28311) 2024-02-20 18:57:28 +01:00
Laurent Destailleur
61f571a367 Avoir error 2024-02-20 18:55:38 +01:00
Laurent Destailleur
313b1edd93 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 18:45:40 +01:00
William Mead
3aebda050f
Added customer code export (#28309) 2024-02-20 18:45:03 +01:00
Laurent Destailleur
8acd3451d1 Doc 2024-02-20 18:40:14 +01:00
Laurent Destailleur
e36c2b2e29 doc 2024-02-20 18:29:11 +01:00
thibdrev
c67461bb38
qual: phpstan for htdocs/salaries/class/paymentsalary.class.php (#28291)
* qual: phpstan for htdocs/salaries/class/paymentsalary.class.php

htdocs/salaries/class/paymentsalary.class.php	205	Property PaymentSalary::$amount (float) does not accept string.

htdocs/salaries/class/paymentsalary.class.php	292	Property PaymentSalary::$amount (float) does not accept string.

htdocs/salaries/class/paymentsalary.class.php	389	Property PaymentSalary::$amount (float) does not accept string.

htdocs/salaries/class/paymentsalary.class.php	565	Property PaymentSalary::$datec (int) does not accept string.

* Update paymentsalary.class.php - apply price2num() on $totalamount before testing if $totalamount==0

* typo
2024-02-20 15:02:05 +01:00
Laurent Destailleur
02e9ef8023 Close #28293 2024-02-20 14:58:46 +01:00
Laurent Destailleur
6030efacd6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 14:58:20 +01:00
Laurent Destailleur
ae49542197 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 14:50:51 +01:00
Laurent Destailleur
0f8b433142 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-20 14:48:51 +01:00
Laurent Destailleur
0492fb6098 FIX close #28279 2024-02-20 14:46:56 +01:00
MDW
b3702b2467
Fix: Do not use exit in Testcase environment (#28301)
# Fix: Do not use exit in Testcase environment

Let tests continue in test case environment and allow identifying
the cause for what would be an exit in a production setup.
2024-02-20 12:29:41 +01:00
Laurent Destailleur
f0ffe83fe6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 11:18:01 +01:00
Laurent Destailleur
977f6b5a61 Complete doc to mention MAIN_DISALLOW_URL_INTO_DESCRIPTIONS option 2024-02-20 11:17:40 +01:00
MDW
db9ce13849
Test/adminlib/remove deprecation (#28302)
* Fix: Deprecation message for backupGlobalsBlackList

# Fix: Deprecation message for backupGlobalsBlackList

Fix the deprecation messages during the tests:

1) AdminLibTest::testVersionCompare
PHPUnit\Framework\TestCase::$backupGlobalsBlacklist is deprecated and will be removed in PHPUnit 10. Please use PHPUnit\Framework\TestCase::$backupGlobalsExcludesList instead.

* Fix: Remove backupGlobalsBlacklist/backupGlobalsExcludesList

# Fix: Remove backupGlobalsBlacklist/backupGlobalsExcludesList

The  backupGlobalsBlacklist/backupGlobalsExcludesList does not seem required
and it is not documented why it is required, so remove this to simplify
the code (see https://github.com/Dolibarr/dolibarr/pull/28292#discussion_r1495116364 ).
2024-02-20 10:38:27 +01:00
Laurent Destailleur
ec2e324a0d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 02:27:05 +01:00
Laurent Destailleur
67a23fd57f Add more choices in lenght of list in apstats 2024-02-20 02:26:42 +01:00
noec764
db6b17ad49
NEW: Add Filter on product reffering object status(Order and Order Supplier) (#28275)
* NEW: Add Filter on product reffering object status(Order and Order Supplier)

* Update html.formorder.class.php

* Update commande.php

* Update commande_fournisseur.php

---------

Co-authored-by: Noé <noe@scopen.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-20 02:12:06 +01:00
MDW
246ec58531
Qual: Refactor for distinction between encodings (STEP6) (Was PR #28228 !) (#28281)
* Qual: Refactor for distinction between encodings

# Qual: Refactor for distinction between encodings

Renamed path/file variable to equivalents with prefix os_ and utf8.
Also added $utf8_fullpath to optimize.

* Fix: Fix mixed os_path/utf8_path

# Fix: Fix mixed os_path/utf8_path

This fixes the mixing of a os_path encoding en utf8_path encoding
by reorganising the statement order.

Also avoid a os_encode call by reusing data already available.
2024-02-20 02:09:00 +01:00
thibdrev
d3679744f9
qual: phstan - various "$tms (int) does not accept string." (#28283)
* Update paymentvat.class.php

* Update tva.class.php

* Update localtax.class.php
2024-02-20 02:05:12 +01:00
thibdrev
7b1c8c43f6
qual : phpstan for htdocs/core/class/dolgraph.class.php (#28284)
* qual : phpstan for htdocs/core/class/dolgraph.class.php

htdocs/core/class/dolgraph.class.php	703	Method DolGraph::GetCeilMaxValue() should return int but returns float.

htdocs/core/class/dolgraph.class.php	1551	Method DolGraph::total() should return string but returns (float|int).

htdocs/core/class/dolgraph.class.php	1593	Method DolGraph::getDefaultGraphSizeForStats() should return int but returns string.

htdocs/core/class/dolgraph.class.php	1599	Method DolGraph::getDefaultGraphSizeForStats() should return int but returns string.

* phpcs
2024-02-20 02:04:41 +01:00
thibdrev
aadea9db4f
qual: phpstan for htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php (#28286)
htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php	182	Property pdf_eagle::$atLeastOneBatch (int) does not accept bool.
2024-02-20 02:02:18 +01:00
thibdrev
269a3e6c10
qual: phpstan for htdocs/product/class/propalmergepdfproduct.class.php (#28287)
htdocs/product/class/propalmergepdfproduct.class.php	313	Property Propalmergepdfproduct::$fk_product (int) does not accept string.

htdocs/product/class/propalmergepdfproduct.class.php	319	Property Propalmergepdfproduct::$fk_user_mod (int) does not accept string.
2024-02-20 02:01:55 +01:00
thibdrev
2b9a674a7c
qual: phpstan for htdocs/fourn/class/api_supplier_invoices.class.php (#28288)
htdocs/fourn/class/api_supplier_invoices.class.php	474	Property Paiement::$datepaye (int) does not accept string.

htdocs/fourn/class/api_supplier_invoices.class.php	475	Property Paiement::$amounts (array<int, float>) does not accept array<int, string>.

htdocs/fourn/class/api_supplier_invoices.class.php	476	Property Paiement::$multicurrency_amounts (array<int, float>) does not accept arra
2024-02-20 02:01:34 +01:00
thibdrev
1263af735f
qual: phpstan for htdocs/product/fournisseurs.php (#28289)
htdocs/product/fournisseurs.php	146	Property Product::$cost_price (float) does not accept string.
2024-02-20 02:00:11 +01:00
MDW
7dce4c354d
Fix: PHPUnit Object Test template (#28299)
# Fix PHPUnit Object Test template

Fix some typing issues discovered when reusing the template.
2024-02-20 01:29:47 +01:00
MDW
b2d90629e7
Qual: Apply php-cs-fixer to make only manual changes stand-out (#28300)
* Qual: Apply php-cs-fixer to make only manual changes stand-out

# Qual: Apply php-cs-fixer to make only manual changes stand-out

A few changes will be proposed in the future to these files.  This already commits
the esthetic changes using php-cs-fixes.

* Qual: Apply php-cs-fixer to make only manual changes stand-out

# Qual: Apply php-cs-fixer to make only manual changes stand-out

A few changes will be proposed in the future to these files.  This already commits
the esthetic changes using php-cs-fixes.

* Qual: Apply php-cs-fixer to make only manual changes stand-out

# Qual: Apply php-cs-fixer to make only manual changes stand-out

A few changes will be proposed in the future to these files.  This already commits
the esthetic changes using php-cs-fixes.
2024-02-20 01:27:46 +01:00
MDW
272e8f79c9
Fix: Improve test configuration (#28294)
# Fix: Improve test configuration

## Do not fail early when running tests (stopOnFailure->false)

Finishing the phpunits tests does not require a lot of extra time
so rather than quiting early, run them all.

Also, when needed this option can be enabled on the CLI, but
it can not be disabled.  So when desired, it can still be added
in a ci-flow or local script.

## Improve reporting

We want to report Notices and Warnings and with enough detail to
help during debug.  These options are explicitly activated.
2024-02-20 01:26:25 +01:00
Laurent Destailleur
626edcac77 Add phpunit test on tasks 2024-02-20 01:17:00 +01:00
lamrani abdelwadoud
2c8a2e5f61
New functionality for add cronjob (#28282) 2024-02-20 00:44:09 +01:00
Laurent Destailleur
009c93f75a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-20 00:41:59 +01:00
Laurent Destailleur
4dbb745df8 Clean table name 2024-02-20 00:41:31 +01:00
Frédéric FRANCE
a659a27623
fix phpdoc (#28290)
* Update api_salaries.class.php

* Update api_salaries.class.php
2024-02-20 00:10:44 +01:00
Laurent Destailleur
7ff44dfc3e FIX Responsive on admin project 2024-02-19 23:37:57 +01:00
Laurent Destailleur
e78bc9af4c FIX Responsive on admin project 2024-02-19 23:33:34 +01:00
Laurent Destailleur
dff5d3ac93 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-19 18:24:57 +01:00
Laurent Destailleur
43996fff1f Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-19 18:23:48 +01:00
Laurent Destailleur
7117ec5a7c Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-02-19 18:18:55 +01:00
Laurent Destailleur
ab5d5a3e79 FIX #28205 2024-02-19 18:18:28 +01:00
Laurent Destailleur
dbeb4427dd Close #28261 2024-02-19 18:06:05 +01:00