Commit graph

154788 commits

Author SHA1 Message Date
Laurent Destailleur
efa1414337 ci 2026-06-16 03:16:51 +02:00
Laurent Destailleur
25bdb74e62 ci 2026-06-16 03:12:07 +02:00
Laurent Destailleur
01756a1c8a Fix CI 2026-06-16 03:03:39 +02:00
Laurent Destailleur
20069c72b8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-06-16 03:00:24 +02:00
Laurent Destailleur
e227afaa60 CI 2026-06-16 02:59:37 +02:00
Charlène Benke
8786a598e3
Warning error if no $InfoFieldList[5] array (#38845) 2026-06-16 02:45:46 +02:00
Laurent Destailleur
35fe9f2883 css 2026-06-16 00:56:14 +02:00
Laurent Destailleur
66c3067d8f Code comment 2026-06-16 00:36:02 +02:00
Laurent Destailleur
d58be15bd7 Better protection for https 2026-06-15 23:41:13 +02:00
Laurent Destailleur
5e9ef29b78 Debug v24 2026-06-15 23:27:23 +02:00
Laurent Destailleur
f1123e9a14 Prepare obfuscation key 2026-06-15 23:00:35 +02:00
Laurent Destailleur
c2b448798c Prepare remove obfuscation key 2026-06-15 21:18:28 +02:00
Laurent Destailleur
2d4bea5962 Debug v24 2026-06-15 18:51:49 +02:00
Laurent Destailleur
ba8482da6f Fix use same property name than main setup page 2026-06-15 16:07:30 +02:00
Laurent Destailleur
e8f69f0e5a Debug 2026-06-15 15:34:54 +02:00
Laurent Destailleur
4d5b667493 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-06-15 15:22:04 +02:00
Laurent Destailleur
73288636b4 CSS 2026-06-15 15:12:42 +02:00
github-actions[bot]
6d21d3df56
PHPStan > Update baseline (#38823)
Co-authored-by: Dolibot <dolibarr-bot@users.noreply.github.com>
2026-06-15 14:57:55 +02:00
Vincent de Grandpré
6305ecc21f
do not index Mistral Vibe (#38824) 2026-06-15 14:57:29 +02:00
Frédéric FRANCE
354eadefa2
clean code (#38826)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code: remove unnecessary ExtraFields instantiations

Remove 8 dead-code instantiations of ExtraFields across htdocs:
- modDav: full unused block (include, new ExtraFields, 5 commented examples)
- resource/agenda.php, public/project/index.php: variable never used
- public/project/suggestbooth.php, suggestconference.php: require_once + variable never used
- fourn/facture/agenda.php: first instantiation immediately overwritten before any use
- compta/facture/card-rec.php, fourn/facture/card-rec.php: $extralabels = new ExtraFields immediately overwritten by fetch_name_optionals_label() return value

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-15 14:57:01 +02:00
Anthony Damhet
9cbb84c1ca
Fix: Using the Microphone (#38828) 2026-06-15 14:56:35 +02:00
Laurent Destailleur
5bcec58afb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-06-15 14:32:59 +02:00
Laurent Destailleur
83174a5ba5 Prepare obfuscation key 2026-06-15 14:32:48 +02:00
Tanguy Chénier
17076a1e47
FIX Stock balance truncated to int for fractional qty (#38806)
calculateBalanceForProductBefore() cast the SUM of stock movement values
to (int), which truncated the fractional part. For products tracked in
fractional units (kg, liters, ...), the before/after period stock balance
displayed in the stock movement list (product/stock/movement_list.php) was
wrong (for example a real balance of 10.5 was shown as 10).

Cast the computed balance to (float) instead and update the method return
type accordingly.

Add a PHPUnit test (MouvementStockTest::testCalculateBalanceForProductBefore)
that records a fractional reception and checks the returned balance is not
truncated.
2026-06-15 14:18:44 +02:00
Laurent Destailleur
acfef04a06 Prepare obfuscation key 2026-06-15 13:51:52 +02:00
Laurent Destailleur
d66baa773d Prepare obfuscation key 2026-06-15 12:41:18 +02:00
Laurent Destailleur
40f571ebca Prepare obfuscation key 2026-06-15 12:33:55 +02:00
Laurent Destailleur
626c3cfe79 Debug v24 2026-06-15 11:10:51 +02:00
Laurent Destailleur
c339fc10a9 Show amount on tooltip 2026-06-15 10:52:59 +02:00
Laurent Destailleur
fe0cb1435e Look and feel 2026-06-15 10:51:17 +02:00
Laurent Destailleur
c13df1d46a Trans 2026-06-15 10:25:27 +02:00
Laurent Destailleur
0a67c9ffcf Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-06-15 10:24:11 +02:00
Laurent Destailleur
ad8cd7c0e1 Fix permission on paiment 2026-06-15 10:23:55 +02:00
Vincent de Grandpré
5b95397100
37423 DiscountAbsolute model refactor (#38808)
* opérations CRUD du modèle DiscountAbsolute

* taux de taxes locales et types ajoutés au modèle

* canvas et méthode paramétrées pour test unitaires

* test création et lecture OK

* #37423 - DiscountAbsolute model refactor to have localtaxes on a remise - unit tests completed

* phpcs

* remove comment

* phpcs local

* remove attributes in favor of parent

* phpstan -  type de données et correction tests unitaires

* typage des retours

* .

* exceptions Phan sur test unitaire

* commentaire de fonction bien formatté

* directives phan depuis CommonClassTest

* avertissements phan

* removing localtaxes from multicurrency attributes as not supported by data model

* interface testing from  ThirdParty comm/remx.php with added multicurrency ttc support

* phpcs OK

* phan typage

* merci phan

* buyer / seller roles of thirdparty integrity

* attribute typo in fetch

* setabsolutediscount and converttoreduc controller actions take into account localtaxes

* usage of localtaxes for discounts in objects

* phpcs

* stan typing

* integrity of multicurrency for generated credit note from supplier invoice
2026-06-15 04:16:42 +02:00
Laurent Destailleur
6de8ba5eff Fix mention on PDF 2026-06-15 02:47:12 +02:00
Laurent Destailleur
d0b67b3c49 Look and feel v24 2026-06-15 02:41:52 +02:00
Laurent Destailleur
57a2103557 Removed not used key 2026-06-15 02:37:40 +02:00
Laurent Destailleur
c47f95111a CSS 2026-06-15 02:26:58 +02:00
Laurent Destailleur
806974de5e CSS 2026-06-15 02:23:50 +02:00
Laurent Destailleur
4ed21499e2 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-06-15 01:21:31 +02:00
Laurent Destailleur
648749d086 Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into 23.0 2026-06-15 01:15:58 +02:00
Laurent Destailleur
8f5bbf3593 More clear doc 2026-06-15 01:15:46 +02:00
Laurent Destailleur
411ee58ca0 Fix migration 2026-06-14 20:59:02 +02:00
Laurent Destailleur
b9ebe7c2ec Debug v24 2026-06-14 20:49:44 +02:00
Laurent Destailleur
fa29fa6879 Debug v24 2026-06-14 20:42:42 +02:00
w3houde
f29d9b7a53
Fix #37365 add per-record transaction mode for mass validate (#38822)
htdocs/core/actions_massactions.inc.php:1060-1140 wrapped all selected
records in a single begin/commit so a mid-loop failure rolled back
records that had already validated. For modules that side-effect on
validate (VeriFactu / AEAT push, e-invoice gateways), the side effect
cannot be reverted alongside the local rollback, leaving the local DB
and the external system out of sync.

Add a hidden constant MAIN_MASSVALIDATE_<OBJECTCLASS>_NO_GLOBAL_TRANSACTION
that, when set to 1, moves the begin/commit pair inside the loop so each
record is its own atomic unit. The constant is per-objectclass per eldy's
review on the issue, so it can be enabled by the module on the page that
needs it (e.g. MAIN_MASSVALIDATE_FACTURE_NO_GLOBAL_TRANSACTION on the
customer invoice list) without affecting other mass-validate pages.

Default behavior is unchanged: with no constant set, the original
all-or-nothing transaction stays in place.

Signed-off-by: Dolicraft <contact@dolicraft.com>
Co-authored-by: Dolicraft <contact@dolicraft.com>
2026-06-14 13:06:52 +02:00
Maxime Kohlhaas
790b4076f5 Fix SQL migration error introduced in #38696 2026-06-14 11:08:31 +02:00
MDW
81368ad865
Qual: Update Phan baseline (#38805)
# Qual: Update Phan baseline
2026-06-14 01:54:50 +02:00
w3houde
4e462c5ca8
Fix #38786 datapolicy: restrict isObjectUsed() guard to deletion, not anonymization (#38798)
htdocs/datapolicy/class/datapolicycron.class.php:378 skipped the row as soon
as isObjectUsed() returned non-zero, regardless of whether the cron loop was
running the delete or anonymize action. isObjectUsed() on Societe is true as
soon as a quote, order, contract, intervention, shipment, etc. points at the
record - all things that are legitimately kept under accounting / commercial
retention while the personal data on the thirdparty itself must still be
erasable under GDPR.

Apply the guard only for action='delete' (where referential integrity is at
stake). Anonymization runs to completion regardless of attached commercial
documents.

Signed-off-by: Dolicraft <contact@dolicraft.com>
Co-authored-by: Dolicraft <contact@dolicraft.com>
2026-06-14 01:53:19 +02:00
William Mead
f472e1a564
Fixed extrafield type check (#38769) 2026-06-14 01:13:22 +02:00