Commit Graph

480 Commits

Author SHA1 Message Date
Frédéric FRANCE
8fd4d0332d clean code (#35423)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code
2025-09-21 23:22:33 +02:00
Frédéric FRANCE
078da229c8 clean code (#35352)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* Clean code

* Clean code

* clean code

* clean code

* clean code

* clean code

* clean code
2025-09-17 14:11:32 +02:00
ldestailleur
a1661e35e4 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-08-21 11:12:35 +02:00
ldestailleur
dd0679db44 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-08-21 11:09:10 +02:00
ldestailleur
7878d81e33 FIX #34986 2025-08-21 11:02:48 +02:00
kevin147147
9c8e7e5ab6 Update commondocgenerator.class.php (#35019) 2025-08-20 19:05:07 +02:00
ldestailleur
2427553211 The property $sumpayed (duplicate of $totalpaid), $sumdeposit
(duplicate of $totaldeposits) and $sumcreditnote (duplicate of
$totalcreditnotes) has been removed (there are replaced with the
property that was a duplication of (same for $sumpayed_multicurrency,
$sumdeposit_multicurrency, $sumcreditnote_multicurrency).
2025-08-12 04:08:38 +02:00
Frédéric FRANCE
bf2d6f1f1e fix CI (#34553)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-06-19 10:10:42 +02:00
Laurent Destailleur
b1812b1080 Debug v22 2025-06-10 02:24:08 +02:00
ldestailleur
a98c6b309f Ignore phan false positive 2025-03-24 15:42:07 +01:00
ldestailleur
1338ea41e4 Fix phpstan 8.2 2025-03-24 15:16:44 +01:00
MDW
c0f533865f Fix CI: Do not require some fields in the 'title' definition of $cols (#33399)
* Qual: Fix PhanMismatchType

* Finalize rename of $attrV into $value

* Correct getGlobalString into getGlobalInt

* Do not require some fields in the 'title' definition of $cols
2025-03-11 01:42:49 +01:00
MDW
2130f1395a Qual: Fix phan (product-part-1) implies fixing unit types 2025-02-09 20:14:20 +01:00
Frédéric FRANCE
473592055f Merge branch 'develop' into fix/2025-02-07-phpstan 2025-02-07 13:28:06 +01:00
Laurent Destailleur (aka Eldy)
9f9eeaa2c4 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-07 10:46:47 +01:00
Laurent Destailleur (aka Eldy)
712a2b544a Fix false positive 2025-02-07 10:46:13 +01:00
Frédéric FRANCE
e0a8caec45 fix phpstan 2025-02-07 10:45:03 +01:00
Laurent Destailleur (aka Eldy)
4d97945cf9 FIX get_substitutionarray_each_var_object was returning empty array 2025-02-06 12:05:56 +01:00
Laurent Destailleur (aka Eldy)
52a4cd5975 FIX get_substitutionarray_each_var_object was returning empty array 2025-02-06 12:01:41 +01:00
Laurent Destailleur (aka Eldy)
1195777042 FIX line_date_xxx into ODF was not loaded 2025-02-06 11:41:08 +01:00
Laurent Destailleur (aka Eldy)
7f78e009c6 FIX line_date_xxx into ODF was not loaded 2025-02-06 11:40:27 +01:00
tnegre
81298d6787 fix Phpstan 2025-01-06 17:09:45 +01:00
tnegre
86913a7681 Add 4 substitutions for ODTs. Reuse logic from PDF generator, but reformat to make it clearer. 2025-01-06 17:02:43 +01:00
Laurent Destailleur
377233d998 Merge pull request #32394 from Easya-Solutions/develop_new_odt_invoice_type
NEW : ODT {object_type_label} for Invoices and Supplier Invoices
2025-01-05 18:02:18 +01:00
Laurent Destailleur (aka Eldy)
4253fa54ec Standardize name of field. 2025-01-05 14:05:50 +01:00
Brice Werry
dee284bb62 FIX: Repair missing tags from previous PR - shipment_lines 2025-01-03 13:25:20 +01:00
tnegre
e0e5594669 add invoice type label 2024-12-17 09:25:37 +01:00
Laurent Destailleur
f86b847a65 Merge branch 'develop' into fix_v20_pdf_space_lost_with_images_eratosthene2 2024-12-08 22:58:03 +01:00
Mohamed DAOUD
62ba788c8f fix stars extrafields on pdf (#31913) 2024-11-15 23:07:37 +01:00
Laurent Destailleur
8443ec649d Fix phan 2024-11-13 21:28:25 +01:00
warnerbryce
8657bba32a NEW : Adds some improvement for ODT Contracts (#31715)
* NEW : ODTSubsitution for date_start_real / Contracts

* ODT Contracts - Add deliveries langs
2024-11-08 14:47:45 +01:00
Frédéric FRANCE
0f563edb5f replace fetch_projet() and fetch_project() by fetchProject() (#29821)
* fix cti

* fix cti

* deprecate fetch_projet fetch_project to fetchProject

* deprecate fetch_projet fetch_project to fetchProject

* deprecate fetch_projet fetch_project to fetchProject

* odfHandler->setSegment only throw OdfExceptionSegmentNotFound

* odfHandler->setSegment only throw OdfExceptionSegmentNotFound

* fix deprecated

* fix

* fix sql
2024-10-26 22:43:44 +02:00
John BOTELLA
8210a0eb21 Merge branch 'develop' into fix_v20_pdf_space_lost_with_images_eratosthene2 2024-10-25 10:29:26 +02:00
Laurent Destailleur
3bc1d35236 QUAL The property ->domiciliation and ->propio on bank accounts has been
deprecated and replaced with property ->address and ->owner_name
2024-10-24 12:38:41 +02:00
John BOTELLA
76491666b3 Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into fix_v20_pdf_space_lost_with_images 2024-10-24 11:36:56 +02:00
MDW
d7b2f95baf Qual: Fix phan notices (#31372)
* fix llx_webhook_target-webhook.sql

* Fix commande/list & facture-rec.class

* Fix bonprelevement

* Qual: Fix prelevement/create notices

* Qual: fix quadridetail notices & update baseline

* Qual: Fix CommonDocGenerator notices

* Qual: Fix commoninvoice and commonobjectline notices (phan/phpstan)

---------

Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
2024-10-13 16:45:42 +02:00
John BOTELLA
7c0e47ccda fix phan 2024-10-09 10:05:53 +02:00
John BOTELLA
35ffdda5e4 fix phan 2024-10-09 09:57:37 +02:00
John BOTELLA
ebc518271b fix phan 2024-10-09 09:29:58 +02:00
John BOTELLA
0dfda86cc0 fix phan 2024-10-09 09:28:06 +02:00
John BOTELLA
b79fa55a99 fix phan 2024-10-09 09:22:26 +02:00
John BOTELLA
498e1473aa Rebuild Cyan PDF MODEL 2024-10-08 22:44:36 +02:00
sonikf
c5587519f0 NEW: PDF Add option to print rounded corner frames (#31172)
* NEW: Add option to enable PDF frame rounded corners

* NEW: function printRoundedRect

* NEW PDF frame rounded corners

* New add rounded corners in frames

* New add rounded corners in frames

* Update admin.lang

* fix incoterm frame height

* Update pdf_sponge.modules.php

* fix pre-commit

* fix pre-commit

* fix php-stan (8.2)

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* fix phan php-stan (8.2) declare property

* New add rounded corners in frames

* New add rounded corners in frames

* add phpdoc for corner radius

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* fix php-stan (8.2)

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* fix whitespace

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* New add rounded corners in frames

* fix pre-commit empty line

* fix phan php-stan (8.2)

* fix phan php-stan (8.2)

* fix Travis

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix title color

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan phpdoc

* fix pre-commit

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-04 09:13:44 +02:00
MDW
1834c37c16 Qual: Fix phan notices (#31212)
* Qual: Fix phan notices

# Qual: Fix phan notices

Fix several phan notices related to classes with UnknownObject
classes.

* Qual: Fix phan notices

* Qual: Fix phan notices

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-03 19:40:34 +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
fbc5dd4822 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-26 19:36:09 +02:00
Laurent Destailleur
ae2ceccc5b Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-09-26 03:44:09 +02:00
Regis Houssin
28df02f039 FIX avoid odt errors (#31126) 2024-09-25 22:52:25 +02:00
MDW
7b4c4d772c Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086)
* Qual: Fix Array of tabs typing hints

# Qual: Fix Array of tabs typing hints

Fixed same typing hints accross several files

* Qual: Fix pdf.lib.php, project.lib.php and related files

# Qual: Fix pdf.lib.php, project.lib.php and related files

Fix most phan notices for pdf.lib.php and project.lib.php.
And fixed some items in other files in the process

* Qual: Fix notifications commande/card advtarget.tpl fichinter/card societe/card supplier_proposal/card

* Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related

# Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related

Fix notices in the files for the classes above and other files to accomodate
these changes/fixes
2024-09-23 00:37:30 +02:00
MDW
f89245b354 Qual: Fix some CommonIncoterm/DocGenerator/People typings (#30940)
* Fix extraparams property typing

* Fix argument typing

* Fix 'status' argument type in calls to dolGetButtonTitle

* Fix argument2 for price to 1 (was 2)

* Fix deliveryreceipt argument

* Fix PHPDoc dol_sort_array

* Fix range for int argument

* Fix arg type for str_pad and add some PHPDoc

* Fix natsort value for dol_sort_array

* Fix arguments on calls to dol_sort_array

* Reduce phpstan exceptions

* Qual: Add type hints for Stripe objects

# Qual: Add type hints for Stripe objects

Suggest the more specific implementation of the StripObject.

* Typing, initialisation

* Qual: Fix undeclared variables

* Update phan baseline

* Update baseline

* Qual: Add type hints for Stripe objects

# Qual: Add type hints for Stripe objects

Suggest the more specific implementation of the StripObject.

* Add PHPDoc for host class properties

* Ignore false positive (phan) for deprecated property

* Improve typing

* Update baseline
2024-09-13 03:09:23 +02:00