Commit graph

151292 commits

Author SHA1 Message Date
Laurent Destailleur
59e0320984 Clean code 2025-10-30 00:28:49 +01:00
Laurent Destailleur
1a8d91eee2 Fix CI 2025-10-30 00:07:50 +01:00
Laurent Destailleur
0f56916173 Clean comment 2025-10-29 23:46:55 +01:00
Laurent Destailleur
f319f32452 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-29 23:39:54 +01:00
Laurent Destailleur
786449d633 Translation: french "Lettrage" is "Matching" in English. "Reconcile"
seems mostly used for "Rapprochement bancaire"
2025-10-29 23:38:37 +01:00
Mathieu Pellegrin
4f3aca359d Fix incorrect total discount (missing loop after GROUP BY query) (#36000)
* Fix incorrect total discount (missing loop after GROUP BY query)

* Make phpcs happy

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-29 23:21:33 +01:00
Mathieu Pellegrin
6a9d50513f
Fix incorrect total discount (missing loop after GROUP BY query) (#36000)
* Fix incorrect total discount (missing loop after GROUP BY query)

* Make phpcs happy

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-29 23:19:47 +01:00
Laurent Destailleur
a42ea407f2 NEW date function related to holiday can accept country id in addition
to country code
2025-10-29 23:14:15 +01:00
Frédéric FRANCE
bda086bf0e
add missing translation and clean code (#35956)
* add missing translation

* add missing translation

* add missing translation

* add missing translation

* add missing translation

* add missing translation

* add missing translation

* add missing translation

* add missing translation

* add missing translation

* add doc

* add doc
2025-10-29 22:25:23 +01:00
Alexandre SPANGARO
2053ccf197
FIX Accountancy - Return on wrong page on y/n button (#35978) 2025-10-29 22:19:38 +01:00
Frédéric FRANCE
3b61b77b79
fix fetch extraparams (#35986)
* fix fetch extraparams

* fix

* fix

* Update FactureTest.php
2025-10-29 22:19:07 +01:00
atm-corentin
3f2f676e58
Fix : Add 'printFieldListGroupBy' hook to stockatdate.php for module flexibility (#35996)
* Refactor stock SQL query logic to enhance readability, support hook extensibility, and maintain DRY principles.

* Pass `$object` and `$action` to hookmanager in stock listing queries for improved hook extensibility.
2025-10-29 22:12:42 +01:00
Charlène Benke
006c9dcc99
Add progress parameter to api task addTimeSpent method (#35992)
Added optional progress parameter to addTimeSpent method.
2025-10-29 22:10:25 +01:00
Frédéric FRANCE
77a06a6cfd
fix CI (#35995)
* Update phpstan-baseline.neon

* Update phpstan-baseline.neon

* Update societe.class.php

* Update societe.class.php
2025-10-29 22:07:14 +01:00
Laurent Destailleur
ebdf77bbde Better error management 2025-10-29 20:41:25 +01:00
Laurent Destailleur
99d311402d Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-29 19:05:33 +01:00
Laurent Destailleur
440c2d238a Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2025-10-29 19:03:09 +01:00
Laurent Destailleur
ae16c8ccba Fix dir 2025-10-29 19:02:32 +01:00
Laurent Destailleur
4c84650e39 NEW Add API for Holidays/Leaves 2025-10-29 18:58:06 +01:00
atm-adrien
68fc03caae
FIX : Situation percent set as 0 when adding line on situation invoices (#35999) 2025-10-29 17:05:43 +01:00
Laurent Destailleur
f32aeac947 NEW Show warning on banner when an email is not valid 2025-10-29 17:00:55 +01:00
Laurent Destailleur
d0c4d2d8b4 NEW Output of category tag is nicer for long subcategories. 2025-10-29 16:50:09 +01:00
Laurent Destailleur
4fd6894210 Fix capital when value is 0 2025-10-29 14:32:51 +01:00
Laurent Destailleur
7b44d610d4 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-29 13:29:03 +01:00
Laurent Destailleur
d0123c3795 Clean code 2025-10-29 13:28:53 +01:00
Alexandre SPANGARO
e68cb0fc00
NEW Accountancy - Add accounting for discounts (#35977)
* NEW Accountancy - Add accounting for discounts - Update menu

* NEW Accountancy - Add accounting for discounts - Setup

* NEW Accountancy - Add accounting for discounts - Language

* NEW Accountancy - Add accounting for discounts - Setup

* NEW Accountancy - Add accounting for discounts - Language

* NEW Accountancy - Add accounting for discounts - Function

* FIX CI

* FIX CI

* Fix CI

* FIX CI
2025-10-29 10:54:14 +01:00
Laurent Destailleur
870ee50729 Fix pos_print_counter 2025-10-28 23:35:42 +01:00
boudet jean pascal
c49066640e
Previously, the function correctly returned the error code, but $this->errors (the error array of the main object, e.g., the invoice) was not updated. The end-user would see a generic failure message without knowing why closing the shipment failed (e.g., "Invalid status," "Stock not sufficient," etc.). (#35980)
Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
2025-10-28 19:22:06 +01:00
Frédéric FRANCE
db9ac18451
fix typo (#35983) 2025-10-28 19:21:21 +01:00
Laurent Destailleur
ab56e3a2c1 Clean code. Removed not working and duplicate feature of post phone
interface (standard interface works better).
2025-10-28 16:57:49 +01:00
Laurent Destailleur
cf18a71a75 WIP LNE 2025-10-28 15:12:45 +01:00
Laurent Destailleur
8e005b19c0 WIP LNE 2025-10-28 15:07:49 +01:00
Laurent Destailleur
e47925af7c WIP LNE 2025-10-28 14:14:28 +01:00
Laurent Destailleur
541e5fefdc Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-10-28 13:33:06 +01:00
Laurent Destailleur
9214ee5d2a Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-10-28 13:07:31 +01:00
Laurent Destailleur
a1b4d1a06e WIP LNE 2025-10-28 13:07:19 +01:00
Jon Bendtsen
982e0ed64e
NEW: API endpoint for getting products in a warehouse (#35918)
* mostly updating fetch with all the fields and adding 2 missing variables

* adding throw RestException numbers, @url and a test for if you try with id=0

* Adding hurl file that do some testing og warehouses API endpoints

* Class for API prevented ever seeing model_pdf in API json

* Check for auth before doing other tests on the request

* New function list Products in warehouse. Work done by defrance, revived by JonB

* API PUT/update now allows for more database fields

* hurl tests for the new list products in warehouse endpoint

* also rejecting warehouse_id in a post

* pre-commit fix api warehouses

* copy paste error from api_usergroup

* Just return the lines, no cleaning needed

* PHAN fixes

* trying to fix PHAN error

* fix api update so it returns error when error, and fix object->update with import_key

* this->db not global db

* Advice from hregis

* Typo this d not dB

* Array of strings

* Changed listProducts in warehouse, uses api_product->get with variables from that

* hurl tests for API warehouses, and the new function get products in warehouse

* some STAN fixes

* more phan fixes

* changes revealed necessary by hurl testing

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
2025-10-28 10:23:06 +01:00
Charlène Benke
e69f56acbe
New Add color fields on user group (#35646)
* Add color column to llx_usergroup table

* Add color column to llx_usergroup table

* Add color property to user group class

* Add color attribute to user group card

* Add ColorGroup translation to users.lang

* Add ColorGroup translation in French language file

* Fix SQL syntax for adding color column in llx_usergroup

* Fix SQL syntax for adding color column in llx_usergroup

* Fix color column addition in llx_usergroup table

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-28 02:26:49 +01:00
Mathieu Pellegrin
88cf4654b4
FIX #35884 (#35885)
Change GETPOST method for password fields to use "password" instead of "alpha".

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-28 02:22:15 +01:00
Frédéric FRANCE
34a1c824b7
NEW public pages donation, ticket and member use captcha setup (#35913)
* donation use captcha setup

* donation use captcha setup

* member use captcha setup

* member use captcha setup

* member use captcha setup

* member use captcha setup

* member use captcha setup

* ticket use captcha setup

* ticket use captcha setup

* clean

* clean
2025-10-28 02:21:06 +01:00
Regis Houssin
2524ab424c
FIX avoid php warning (#35953) 2025-10-28 02:03:40 +01:00
Frédéric FRANCE
8cbe1b55af
add dolBuildUrl (#35947)
* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* add dolBuildUrl

* clean
2025-10-28 01:40:02 +01:00
Frédéric FRANCE
7342a58044
clean phpstan baseline for supplier invoice class (#35945)
* clean phpstan baseline for supplier invoice class

* clean phpstan baseline for supplier invoice class
2025-10-28 01:25:46 +01:00
Frédéric FRANCE
03ea0cda01
clean code class commondict (#35952)
* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* clean code
2025-10-28 01:25:30 +01:00
Regis Houssin
e37c7678a4
FIX avoid warning if NOREQUIRETRAN is defined (eg ajax) (#35954) 2025-10-28 01:24:02 +01:00
Regis Houssin
cac1058caf
NEW add extraparams field in llx_categorie (#35975) 2025-10-28 01:22:02 +01:00
Frédéric FRANCE
972295ea3c
add missing translation (#35958) 2025-10-28 01:13:14 +01:00
Frédéric FRANCE
a487ce4923
add missing translation (#35959)
* add missing translation

* add missing translation

* clean missing
2025-10-28 01:12:45 +01:00
dependabot[bot]
8ac1fca761
Bump actions/upload-artifact from 4 to 5 (#35960)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-28 01:12:07 +01:00
sonikf
8ed78a31b1
Add tpl files for standalone reception (#35966)
* Add tpl for standalone reception

* try to fix phan
2025-10-28 01:10:11 +01:00