Commit Graph

1116 Commits

Author SHA1 Message Date
Frédéric FRANCE
d5de4f4f67 fix cti (#29809)
* fix cti

* Update accountingaccount.class.php

* Update accountingaccount.class.php

* Update admin.lang

* Update ignore_translation_keys.lst

* Update ignore_translation_keys.lst

* Update json.lib.php
2024-06-03 13:44:31 +02:00
Frédéric FRANCE
39fda91129 fix cti (#29808)
* fix cti

TypeError PhanTypeMismatchArgumentProbablyReal Argument 1 ($rowid)

* Update accountingjournal.class.php

* fix phan
2024-06-01 12:06:41 +02:00
Laurent Destailleur
82908a30eb Clean phan warnings 2024-05-30 13:37:17 +02:00
Laurent Destailleur
4e62323b70 Fix warnings 2024-05-23 20:20:57 +02:00
Laurent Destailleur
8244b920df Remove phan warning 2024-05-23 15:47:25 +02:00
Laurent Destailleur
59ae417912 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-05-23 12:52:28 +02:00
Laurent Destailleur
481fec5291 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-05-21 20:12:45 +02:00
lvessiller-opendsi
f72232399b NEW auto-determine piece number in FEC import (#29672)
* NEW auto-determine piece number in FEC import

* FIX float value for abs function
2024-05-15 18:10:21 +02:00
lvessiller-opendsi
cfc162a31d FIX lettering (auto) for invoice deposit with company discount (#29633) 2024-05-07 21:44:05 +02:00
Frédéric FRANCE
d0830b3159 fix phpstan (#29602)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix travis

* fix phpstan

* fix phpstan

* fix phan

* 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 travis

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-05 00:34:19 +02:00
Laurent Destailleur
d4b7332c76 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-22 14:24:14 +02:00
Laurent Destailleur
6303bceecd Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-04-22 14:19:59 +02:00
lvessiller-opendsi
370785d515 FIX accounting FEC import (Issue #28306) (#29414) 2024-04-20 22:18:10 +01:00
MDW
bec5ff4749 Fix: Enforce/use int nature of BookKeeping(Line)::$piece_num, fix hooks typings (#29298)
* Fix: Enforce/use int nature of BookKeeping(Line)::$piece_num

* Fix typing in hookmanager class

* Improve DolHooksCollector phpdoc

* Fix PhanTypePossiblyInvalidDimOffset by testing index's existence

* Ignore PhanTypePossiblyInvalidDimOffset that phan can not detect

* Allow  to be null, initialise instead of unset
2024-04-09 23:21:28 +02:00
Laurent Destailleur
082195b249 Fix #yogosha21569 2024-04-09 18:49:48 +02:00
Laurent Destailleur
b5de782c6b Fix use the good HTTP code 2024-04-07 14:59:25 +02:00
Laurent Destailleur
fd9475be03 Use same doc comment eveywhere. 2024-04-07 12:26:27 +02:00
Alexandre SPANGARO
d459ee6b7b NEW - Accountancy - Show import key if exist (#29265) 2024-04-07 11:47:23 +02:00
Frédéric FRANCE
7cf6a0821f fix phpdoc for ismultientitymanaged (#29245)
* fix phpdoc

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-06 17:38:39 +02:00
Laurent Destailleur
38fb00489d PHPDoc 2024-04-05 13:44:59 +02:00
Laurent Destailleur
572600bfd3 NEW Use a nicer combo list to select the export accounting format 2024-04-02 17:41:53 +02:00
Laurent Destailleur
af41ec8e41 Clean code - Remove not used method fetchAll and CSS 2024-04-02 16:42:21 +02:00
Laurent Destailleur
df6c697dfc Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-29 11:51:07 +01:00
Laurent Destailleur
f2fde181a0 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-29 11:47:28 +01:00
Alexandre SPANGARO
522a012053 FIX Accountancy export with file or not 2024-03-26 16:13:54 +01:00
Laurent Destailleur
e9e2105508 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/accountancy/class/bookkeeping.class.php
	htdocs/core/class/CMailFile.class.php
	htdocs/core/lib/functions.lib.php
	htdocs/ticket/class/ticket.class.php
2024-03-19 18:12:13 +01:00
Laurent Destailleur
ae3847dc38 FIX Manual deletion of a bookkeeping line
Conflicts:
	htdocs/accountancy/class/bookkeeping.class.php
2024-03-19 01:16:43 +01:00
Laurent Destailleur
6506a54734 Fix regression 2024-03-19 01:12:35 +01:00
Laurent Destailleur
7e44ab47ca FIX Manual deletion of a bookkeeping line 2024-03-19 00:48:51 +01:00
Laurent Destailleur
4500672cb4 Rename hooks 2024-03-19 00:11:59 +01:00
MDW
ae3bc300a1 Fix: remove strtoupper on int fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:15:10 +01:00
MDW
87288a1a17 Fix: cast int to string for str_pad fixes PhanTypeMismatchArgumentInternal 2024-03-18 02:08:55 +01:00
MDW
3384a0b847 Fix & enable PhanUndeclaredTypeReturnType
# Fix & enable PhanUndeclaredTypeReturnType

One typo, and replace 'number' with int or int|float
2024-03-15 10:07:15 +01:00
MDW
42dafc78ed Fix PhanPluginRedundantAssignment 2024-03-13 00:40:31 +01:00
MDW
717c47abd3 Fix PhanPluginRedundantAssignment 2024-03-13 00:40:31 +01:00
MDW
2f5a227f8c Fix PhanPluginMixedKeyNoKey by using explicit keys 2024-03-12 21:35:42 +01:00
lamrani abdelwadoud
61518d9b76 Merge branch 'develop' into fixgetFiscalPeriods 2024-03-12 15:51:34 +01:00
Lamrani Abdel
f54c929321 Fix method doc and cast two column 2024-03-12 14:58:20 +01:00
Laurent Destailleur
74b8162d22 Merge pull request #28700 from mdeweerd/urlencode/fixuptype
Fix: Ensure the argument type for urlencode is string
2024-03-12 14:43:41 +01:00
MDW
fbcfd89f88 Fix PHPDoc date_start typo 2024-03-11 21:27:22 +01:00
Laurent Destailleur
30b5450e21 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-11 13:17:57 +01:00
Laurent Destailleur
f72b03434b Fix sql sanitization 2024-03-11 13:16:53 +01:00
MDW
8602ca9885 Fix: implode->join and duplicated if condition (#28761)
* Fix: join->implode

# Fix: join->implode

Update new cases of join

* Fix: Duplicate if condition in if/else sequence

# Fix: Duplicate if condition in if/else sequence

Fixed repeated if condition and action
2024-03-11 12:55:55 +01:00
Laurent Destailleur
f32bf4b3a7 Fix join -> implode 2024-03-11 12:38:21 +01:00
Laurent Destailleur
8df2ddc494 Fix sanitize sql 2024-03-11 10:48:46 +01:00
Laurent Destailleur
8d7911f484 Fix compatibility with USF. 2024-03-11 10:32:15 +01: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
96ef01c5c7 Fix print $sql 2024-03-10 01:37:27 +01:00
Laurent Destailleur
279de64851 Fix regression 2024-03-10 01:21:50 +01:00
MDW
8a863da256 Fix: Ensure string type for urlencode() 2024-03-09 16:52:38 +01:00