ldestailleur
34ecda6994
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
2025-02-25 02:47:26 +01:00
ldestailleur
030d83145f
Merge
2025-02-25 02:44:30 +01:00
ldestailleur
f199d3fd61
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
2025-02-21 15:46:33 +01:00
Alexandre SPANGARO
5890046d8b
Add hidden constants to remove some export file of the archive
2025-02-20 07:46:45 +01:00
Laurent Destailleur (aka Eldy)
d97a91b83e
Merge
2025-02-05 11:16:03 +01:00
Laurent Destailleur (aka Eldy)
769558ffb8
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 21.0
2025-02-05 11:14:23 +01:00
Laurent Destailleur (aka Eldy)
3ad51f2a19
Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
2025-02-05 11:10:51 +01:00
MDW
aa521a46d2
Qual: Fix phan notices (import)
2025-02-05 01:43:38 +01:00
Laurent Destailleur
0cc61215a9
Update accountancyimport.class.php
2025-02-04 22:56:35 +01:00
Florian HENRY
bef5cbc8bc
FIX: FEC import
2025-02-03 17:01:38 +01:00
Laurent Destailleur (aka Eldy)
58134e840d
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
...
develop
2025-01-30 13:14:15 +01:00
Regis Houssin
0f0c6aebeb
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into fix_21_wrong_table_name
2025-01-29 07:11:06 +01:00
Regis Houssin
0438db7747
FIX wrong table name
2025-01-29 07:10:41 +01:00
Laurent Destailleur
19c8eae273
Merge pull request #32088 from alexandre-janniaux/accountingjournal-create/1
...
QUAL accountingjournal: add create() method
2025-01-13 03:16:26 +01:00
Laurent Destailleur (aka Eldy)
b024b95948
Fix typo
2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
56710ce9b7
FIX CVE-2024-55227 and CVE-2024-55228 CSRF when
...
MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
on (hidden option not on by default)
2025-01-09 19:35:01 +01:00
Laurent Destailleur (aka Eldy)
de321e8f01
Fix typo
2025-01-09 02:01:49 +01:00
Laurent Destailleur (aka Eldy)
c0250e4c91
FIX CVE-2024-55227 CSRF when MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
...
on (hidden option not on by default)
2025-01-08 17:41:45 +01:00
Frédéric France
6f2611cf74
fix phan
2024-12-17 18:36:52 +01:00
Frédéric FRANCE
4f780dab1a
Update bookkeeping.class.php
2024-12-17 18:35:21 +01:00
Frédéric FRANCE
07284c4d96
Update bookkeeping.class.php
2024-12-17 18:28:24 +01:00
Frédéric FRANCE
ddabb06037
Update bookkeeping.class.php
2024-12-17 18:20:43 +01:00
Frédéric FRANCE
15d4323b5a
Update bookkeeping.class.php
2024-12-17 18:13:53 +01:00
Frédéric France
6623a3c23d
remove no more used code
2024-12-17 17:59:21 +01:00
Laurent Destailleur (aka Eldy)
81e64ed9a4
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-12-17 16:59:13 +01:00
Laurent Destailleur (aka Eldy)
91eb9fc9fb
Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0
2024-12-17 16:54:55 +01:00
Alexandre Janniaux
45f6905bae
FIX #32376 : lettering: fix ifsql() called with invalid $check parameter
...
The $check is supposed to be a check retuning a boolean. By being an
`if (value)` check instead of being an `if (value IS NOT NULL)` check,
postgresql complains the types are not correct:
Error ERROR: 42804: argument of CASE/WHEN must be type boolean,
not type integer LINE 1: ...k, tl2.fk_doc FROM ( SELECT DISTINCT
(CASE WHEN tll.fk_fac... ^ LOCATION: coerce_to_boolean,
parse_coerce.c:1176
Regression from commit cfc162a31d .
2024-12-15 18:39:40 +01:00
Alexandre Janniaux
678283dab6
Merge branch 'develop' into accountingjournal-create/1
2024-12-11 09:53:36 +01:00
Pichi1966
b86c1b22f4
Update Closure Income Labels
2024-12-09 12:46:47 +01:00
Leonardo Pedroza
cd2ea4e66f
Fix: accountancy import for FEC files to avoid double escaped values in query ( '\'D\'')
2024-12-09 11:37:46 +01:00
Pichi1966
25e3224121
Close #30039 and port code on this one
...
This will help to better and understand and follow this fix
2024-12-08 11:36:26 +01:00
Pichi1966
7e3624ee27
Clean Spaces versu tab
2024-12-01 19:08:53 +01:00
Pichi1966
89fc9ac8ea
FIX Accounting Closure Duplicates and more Update bookkeeping.class.php
...
FIX I did further testing and investigation and I fixed the following issues that stop doing a full closure without duplicate lines generated by an unclean database :
- different label_compte with same account number
- removing label_compte is raising an issue and the code in the line around 2770 $bookkeeping->label_compte = $obj->label_compte;
- different subledger_label with same subledger_account
- empty versus null values for subledger_label and subledger_account
- opening_balance is 0 as it creates a bookkeeping entry for now.
FIX - Update Accounting closure with missing too many A-Nouveau #30039 )
2024-12-01 18:55:31 +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 Janniaux
0099fbbd2c
accountingjournal: add create() method
...
Adding a create method ensure we create the accountingjournal in a
uniform way, and allow creating the journals in tests without getting
out-of-sync.
2024-11-25 21:23:33 +01:00
Frédéric FRANCE
daae68f9d3
Fix phpstan ( #32005 )
...
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
* fix phpstan
2024-11-19 21:02:05 +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
37df9c3524
export
2024-11-10 18:42:57 +01:00
Laurent Destailleur
579aa77d76
Fix phpstan
2024-11-10 18:40:24 +01:00
Frédéric FRANCE
15490b292f
fix phpstan and fix CI ( #31739 )
...
* 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-11-10 11:16:23 +01:00
Frédéric FRANCE
41a4f42b31
add phpdoc and clean phpstan baseline ( #31717 )
...
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc and clean phpstan baseline
* add phpdoc
* add phpdoc
* add phpdoc
2024-11-07 17:31:40 +01:00
Frédéric FRANCE
1adc883b56
add baseline exclude for phpstan ( #31632 )
...
* add baseline exclude for phpstan
* update
* update
* update
* update
* update
* merge
* restore one filter
* delete old errors
* fix
* fix
* fix
* $moreforfilter can t be empty
* fix
* enable check
* refresh baseline
* add phpdoc
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* update phpstan baseline
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-11-04 23:53:20 +01:00
Alexandre SPANGARO
3c81211b80
NEW Custom accounting reports ( #31673 )
...
* NEW Custom accounting reports
* Copyright
* FIX Pre-commit
* FIX Pre-commit
* Fix Phan
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-11-04 16:38:17 +01:00
Laurent Destailleur
10fe6f1f9f
Fix option ACCOUNTANCY_DISABLE_CLOSURE_LINE_BY_LINE
2024-10-29 14:38:08 +01:00
Laurent Destailleur
405a741726
Fix doxygen
2024-10-25 14:30:51 +02:00
Alexandre Janniaux
0bdd209d06
QUAL: AccountancySystem: maintenance work to uniformize and clean up ( #31391 )
...
* accountancysystem: inherit CommonObject
This provides the common methods on the database objects like error
handling.
* accountancysystem: improve error reporting
Forward the database error to the caller when an error happens.
* accountancysystem: clean up class
The fields that were completely unused are removed. $ref is still kept
since it was filled by AccountancySystem::fetch(), but marqued as
deprecated to incite using the newer more descriptive pcg_version field.
* Update accountancysystem.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr >
2024-10-19 03:37:44 +02:00
Alexandre Janniaux
4146c0df89
accountancysystem: fix object create() method ( #31390 )
...
The accountancysystem::create() method is not used in the code, and thus
was not updated, especially after the introduction of the whole new
accountancy system. The method is at least useful for the tests so fix
it to create values like in every other tests.
2024-10-14 16:50:32 +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
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