Commit graph

152212 commits

Author SHA1 Message Date
Erwan-Wiwit
08feb72c6c
Add hook stripeWebhookEvent in Stripe IPN for external modules (#37293)
* Add hook stripeWebhookEvent in Stripe IPN for external modules

Allow external modules to intercept and handle Stripe webhook events
via the standard Dolibarr hook system. The hook is called before the
built-in event processing, and modules can return >0 to stop default
processing if they handled the event entirely.

Hook context: stripeipn
Hook method: stripeWebhookEvent
Parameters: event (full Stripe event), servicestatus, service

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix phpstan: instantiate HookManager before use in ipn.php

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 01:43:25 +01:00
minimexat
dd3709be29
fix: use ob_end_clean() instead of ob_end_flush() in readfileLowMemory() (#37298)
* fix: use ob_end_clean() instead of ob_end_flush() in readfileLowMemory() (fixes #37239)

* fix: use robust ob level cleanup loop per hregis review

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 01:36:32 +01:00
Laurent Destailleur
dad5f55081 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-23 01:31:13 +01:00
Laurent Destailleur
717f315551 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-23 01:30:54 +01:00
Laurent Destailleur
c15994cbf8 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-02-23 01:29:51 +01:00
Laurent Destailleur
6b228411de Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-23 01:28:59 +01:00
Laurent Destailleur
f87a5ab46a Remove beautysh 2026-02-23 01:21:39 +01:00
Lucas Marcouiller
be46c48f55
fix some technical debt (#37296)
* fix some technical debt

* fix CI

---------

Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 01:17:17 +01:00
minimexat
9dd8492475 fix: add class existence check after failed include in barcode.php (#37297)
* fix: add class existence check after failed include in barcode.php (fixes #37249)

* fix: move continue into catch block per reviewer feedback

* fix: add continue in catch block per hregis review

* fix: replace invalid continue with $error++ in printsheet.php catch block

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 01:15:53 +01:00
minimexat
79c6f82841
fix: add class existence check after failed include in barcode.php (#37297)
* fix: add class existence check after failed include in barcode.php (fixes #37249)

* fix: move continue into catch block per reviewer feedback

* fix: add continue in catch block per hregis review

* fix: replace invalid continue with $error++ in printsheet.php catch block

---------

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 01:15:29 +01:00
atm-corentin
020f552410
Adjust tracking number height calculation in PDF generation (#37289) 2026-02-23 01:05:35 +01:00
William Mead
ff7e2c4292
Updated PHPDoc with since tag (#37300)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 01:03:57 +01:00
splohmer
00a64df8e4
NEW Add Hook for adapting virtual stock in replenish screen (#37290)
* Add Hook for adapting virtual stock in replenish screen 

Currently it is only possible to hook in the loadvirtualstock hook to adapt the virtual stock by external modules. The newer version of the replenish screen doesn't use this hook anymore (by loading stock from product object) as it now uses faster sql queries. Therefore the external module cannot adapt this area and there is an missmatch of the view in replenish.php and the stock tab of the product.

* fix phan warning
2026-02-23 01:03:21 +01:00
Laurent Destailleur
7de8680a37 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-23 00:58:50 +01:00
Laurent Destailleur
dc29ebfb87 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-02-23 00:58:04 +01:00
Laurent Destailleur
cbdeebd338 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-23 00:57:52 +01:00
Laurent Destailleur
e31e6371e3 CI 2026-02-23 00:55:32 +01:00
ThomasNgr-OpenDSI
0b34a66fe6
FIX : filters on contract services list (#37274)
- when filtering on inactive services with pagination, clicking on 'next page' will lose filter for 'inactive' status.
- when filtered on 'active / expired' or 'active / not expired', the '(not) expired' part was lost after navigating to next/prev page
2026-02-23 00:43:23 +01:00
Regis Houssin
d3652eac53
FIX avoid php error for phpinfo_array() function (#37292) 2026-02-23 00:42:24 +01:00
MDW
095f72a3a7
Qual: Update pre-commit hooks and dependencies (#37313)
Updated the following pre-commit hooks and dependencies:
- gitleaks: v8.29.0 -> v8.30.0
- actionlint: v1.7.10 -> v1.7.11
- yamllint: v1.37.1 -> v1.38.0
- sqlfluff: 3.3.1 -> 4.0.4
- Added LT15 to exclude_rules in pyproject.toml (new since 3.3.1)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 00:41:04 +01:00
William Mead
9560eb00bd
Updated PHPDoc with since tag (#37299)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 00:40:39 +01:00
minimexat
4117aa4e31 fix(expedition): add 'shipping' as valid modulepart alias in dol_check_secure_access_document (#37307)
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
2026-02-23 00:39:44 +01:00
minimexat
e52c212a81
fix(expedition): add 'shipping' as valid modulepart alias in dol_check_secure_access_document (#37307)
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
2026-02-23 00:38:56 +01:00
MDW
1a8f540dc8
Fix: CI (#37320)
* Fix: http_response_code type

# Fix: http_response_code type

- Fixed http_response_code type

* Fix: Initialize refcashcontrol variable

Initialize refcashcontrol variable to 0 to ensure it is defined before use in the invoice.php script.

* Fix: Remove redundant check for BILL_SENTBYMAIL & $object type

# Fix: Remove redundant check for BILL_SENTBYMAIL & $object type

- Removed redundant check for BILL_SENTBYMAIL

* Fix: Correct date calculation for full year cash control

# Fix: Correct date calculation for full year cash control

Calculates the start date by subtracting one year from the end date.

* Qual: Add default batch value for invoice processing

# Qual: Add default batch value for invoice processing

Adds default empty string for the batch variable.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 00:35:33 +01:00
Laurent Destailleur
de8f15ce38 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2026-02-23 00:11:16 +01:00
Laurent Destailleur
fe4648657e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-22 23:53:46 +01:00
Laurent Destailleur
2d5b6ea490 CI 2026-02-22 23:53:27 +01:00
Charlène Benke
f810a89977
verify if Hierarchical Responsible is allowed to validate holiday/exp (#37315)
* verify if Hierarchical Responsible is allowed to validate holiday/expense

* Add messages for holiday and expense report approval

* Add French translations for approval messages
2026-02-22 23:41:35 +01:00
Laurent Destailleur
cea9183889 CI 2026-02-22 23:40:56 +01:00
Laurent Destailleur
3fa9d82ca5 Fix CI 2026-02-22 23:15:20 +01:00
Laurent Destailleur
68385e59d0 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-22 17:16:20 +01:00
Laurent Destailleur
e3e15e5df1 Add option MAIN_JQUERY_JNOTIFY_UNDER_MENU to have notification under
menu (not a so good idea, under menu is blocking the use of navigation
buttons needing to wait more often the notif disappear).
2026-02-22 17:16:09 +01:00
Laurent Destailleur
0ca643dffb sync transifex 2026-02-22 17:09:40 +01:00
hansemschnokeloch
e728453b7a
Log message additionnal info (#37215) 2026-02-22 01:22:08 +01:00
Laurent Destailleur
c73820a931 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-02-21 23:50:34 +01:00
Laurent Destailleur
2821d18720 Doc 2026-02-21 23:50:24 +01:00
Laurent Destailleur
0eeac1817d FIX fail2ban rules 2026-02-21 23:50:18 +01:00
evarisk-kilyan
3d2c20193f
#37185 [Workflow] add: ticket workflow read ticket when assign someone (#37187)
* #37185 [Workflow] add: ticket workflow read ticket when assign someone

* #37185 [Workflow] remove: double quote

* #37185 [Ticket] fix: move conf to ticket conf

* #37185 [Ticket] fix: typo
2026-02-21 23:28:21 +01:00
Laurent Destailleur
cdbd56c0ba Clean code 2026-02-21 22:34:37 +01:00
Laurent Destailleur
bb8290ef23 Demo 2026-02-21 18:32:13 +01:00
Laurent Destailleur
7df18dbad8 Clean scripts 2026-02-21 12:28:45 +01:00
Laurent Destailleur
63ed00fdba Fix CI 2026-02-21 12:22:59 +01:00
Sylvain Legrand
b34fb98b52
Update commande.class.php (#37301)
the empty qty logic → special_code = 3 ("Option" line) is not respected, unlike Propal which works correctly.
2026-02-21 12:09:17 +01:00
Jyhere
48cb31224e
FIX: MAIN_FEATURES_LEVEL typo errors (#37304) 2026-02-21 12:03:15 +01:00
Laurent Destailleur
ac8af31c51 Fix CI 2026-02-21 11:56:15 +01:00
Laurent Destailleur
7728f8c895 WIP LNE 2026-02-21 11:44:43 +01:00
Laurent Destailleur
acc5f754e6 Removed the header that was a copy past, but this file was authored by
one dev only
2026-02-21 10:28:13 +01:00
minimexat
9e3f3e70d6
fix(product): default empty/null price_base_type to HT instead of treating as TTC (#37309)
Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-21 06:51:59 +01:00
MDW
829ea724cd
Qual: Update codespell skip pattern to exclude blockedlog demo archives files (#37306)
# Qual: Update codespell skip pattern to exclude blockedlog demo archives files

The skip pattern in the pyproject.toml file has been updated to exclude additional files, specifically those in the dev/initdemo/documents_demo/blockedlog/archives/ directory.
2026-02-21 06:48:47 +01:00
Laurent Destailleur
c1db001cd8 Doc 2026-02-20 20:09:13 +01:00