Regis Houssin
0438db7747
FIX wrong table name
2025-01-29 07:10:41 +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
Alexandre SPANGARO
73171867e0
Accountancy personalized reports - Prepare report page ( #31935 )
2024-11-16 20:58:09 +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
Laurent Destailleur
405a741726
Fix doxygen
2024-10-25 14:30:51 +02:00
Alexandre SPANGARO
c4409e44f9
QUAL Use table_element in sql querries ( #31355 )
...
* Use table element in sql querries
* Use table element in sql querries
* Use also $this->db->prefix()
* Use table_element in sql querries
2024-10-13 16:47:47 +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
MDW
506454b10a
Qual: Resolve ~200 phan notices/~100 phpstan notices ( #30879 )
...
* bookkeeping\card.php, productaccount
* Fix bookkeeping/listbyaccount
* Typing for accountancycategory
* Fix typing accountancyimport
* Typing accountingaccount
* Typing api_accountancy
* bookkeeping typing
* Fix typing lettering
* Typing for accountancy/customer/list
* Typing accountancy/journal/bankjournal
* typing accountancy/journal/variousjournal
* Typing accountancy/supplier/list
* Initialisations in accountancy/journal/expensereportsjournal
* Initialisations in accountancy/journal/purchasesjournal
* Initialisations in accountancy/journal/sellsjournal
* Update baseline
2024-09-10 02:11:53 +02:00
Frédéric FRANCE
80d1f47d4d
fix ignored phpstan (most of expects string, int given) ( #30649 )
...
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
fix ignored phpstan
fix ignored phpstan
fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
fix ignored phpstan
fix ignored phpstan
fix ignored phpstan
fix ignored phpstan
fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* fix ignored phpstan
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* more ignore
* 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
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
2024-09-05 16:05:37 +02:00
MDW
37afba949e
Fix most PhanTypeMismatchDimAssignment notices ( #28739 )
...
* Qual: Add typing to fix PhanTypeMismatchDimAssignment notice
* Fix: Initialise array for code in somme
* Qual: Update type hint for argument in _Set_Format
* Qual: Update type hint for childtables
* Qual: Add typing to attributes
* Qual: Add typing for _msgContent
* Qual: Suppress PhanTypeMismatchDimAssignment
* Qual: Add typing for liste
* Qual: Add typing to fields
* Qual: Add typing hint for $objMod
* Qual: Modify assignment of array with bool keys for phan typing
Demonstration:
```
php -r '$a=[true=>"yes",false=>"no"];var_dump($a);'
# Result demonstrates bool keys are converted to int.
Command line code:1:
array(2) {
[1] =>
string(3) "yes"
[0] =>
string(2) "no"
}
```
* Qual: Add typing hint to indicate value is not null
* Force non-null type on $paramname
* Qual: Add typing hint to getCats()
* Update inc.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-03-10 01:53:04 +01:00
Laurent Destailleur
ce010a54c7
Clean code and prepare a more powerfull phpunit check for sql forging.
2024-03-05 00:22:12 +01:00
Frédéric France
03e29c6960
fix param
2024-01-20 09:22:38 +01:00
MDW
39769482b1
Qual: Fix typing hints for DoliDB ( #27484 )
...
# Qual: Fix typing hints for DoliDB
This should help the static tools for type and method checking.
2024-01-13 15:50:02 +01:00
MDW
85ad4ecdf8
Qual: Spelling for htdocs/[a-b]* ( #27422 )
...
Mostly comments, one variable changed from misspelling to .
Also changed CNAT to C.N.A.T in comment to avoid fix from CNAT to CAN'T.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-01-12 20:58:09 +01:00
Frédéric FRANCE
61b79fda17
avoid phpstan error with phpdoc
2023-12-06 15:46:39 +01:00
Laurent Destailleur
987d6c41b9
Fix with php-cs-fixer
2023-12-04 11:41:14 +01:00
Frédéric FRANCE
53c8a3acf8
clean phpdoc for phpstan ( #26905 )
2023-12-01 19:51:32 +01:00
Frédéric FRANCE
44773e22d3
doc
2023-08-23 13:20:37 +02:00
Laurent Destailleur
e74c50aa8a
Clean code
2023-04-28 16:05:25 +02:00
Laurent Destailleur
2b4f4e9e4a
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
2023-03-04 15:25:58 +01:00
Laurent Destailleur
925cd10cee
Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0
2023-03-03 13:30:02 +01:00
Laurent Destailleur
215cd58827
Fix for #24094
2023-03-03 11:53:21 +01:00
Laurent Destailleur
04ca203ee8
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
2023-02-21 12:21:01 +01:00
Laurent Destailleur
88367520f1
Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0
2023-02-21 12:19:36 +01:00
Quentin VIAL-GOUTEYRON
a57ad3b96b
Merge branch 'FIX_accounting_filter_pgc_version' of github.com:atm-quentin/dolibarr into FIX_accounting_filter_pgc_version
2023-02-20 14:08:50 +01:00
Quentin VIAL-GOUTEYRON
b9fc6d5a2f
fix travis
2023-02-20 12:01:42 +01:00
stickler-ci
66b5917013
Fixing style errors.
2023-02-20 10:50:52 +00:00
Quentin VIAL-GOUTEYRON
80199faf1a
FIX filter sql accounting account
2023-02-20 11:27:14 +01:00
Laurent Destailleur
dab6b5f8a5
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
2022-12-30 12:15:46 +01:00
Laurent Destailleur
32c161e576
Fix warnings
2022-12-30 12:10:23 +01:00
Laurent Destailleur
e9d66286e0
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
2022-12-29 20:29:07 +01:00
Laurent Destailleur
bcd5c207cf
Debug v17 - Fix the report on custom groups, column previous period
2022-12-29 20:25:53 +01:00
Laurent Destailleur
a7c2d72315
NEW Can filter on a custom group of accounts. Perf or ledger list.
2022-12-29 16:39:27 +01:00
Laurent Destailleur
77d6b9510b
Clean code
2022-12-28 13:04:11 +01:00
Laurent Destailleur
7ca850830a
FIX #23212
2022-12-13 23:51:23 +01:00
Laurent Destailleur
3177a065cd
Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0
2022-09-09 01:31:43 +02:00
Thomas Negre
ce78e0164a
Fix: When a custom compta group would be unactive, its code would stay in the computed formula. This would lead to wrong totals if the code is a number.
2022-09-01 17:49:05 +02:00
Laurent Destailleur
ee066ad725
Cast sql var
2021-09-03 21:25:43 +02:00
Laurent Destailleur
46d993c9a6
Clean code
2021-08-27 22:42:04 +02:00
Laurent Destailleur
5cc86d2319
Fix #yogosha6370
2021-06-14 13:51:09 +02:00
Alexandre SPANGARO
53d0909a7c
Merge remote-tracking branch 'upstream/develop' into 14a26
2021-06-12 14:20:00 +02:00
Laurent Destailleur
fb46ece906
Fix yogosha 6347
2021-06-09 15:36:47 +02:00
Laurent Destailleur
d0cc64479d
Fix protect sql
2021-04-24 20:18:11 +02:00
Alexandre SPANGARO
305b338a11
Update notified
2021-04-19 06:03:03 +02:00
Laurent Destailleur
3439bc4a0f
Clean code
2021-04-13 11:30:23 +02:00
Laurent Destailleur
3744bc6a7a
FIX #yogosha5746 - next step (work in progress)
2021-03-30 18:17:13 +02:00
Laurent Destailleur
6e422d26f3
FIX #yogosha5746 - next step (wip)
2021-03-30 16:20:18 +02:00
Laurent Destailleur
15440917b1
Fix #ygosha5698
2021-03-22 11:30:18 +01:00
Laurent Destailleur
cc10106a21
Fix protection on int
2021-03-14 12:20:23 +01:00
Laurent Destailleur
12f50a76d7
Fix yogosha #5627
2021-03-14 11:48:39 +01:00