Commit graph

147673 commits

Author SHA1 Message Date
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
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
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
Joachim Kueter
deeb710d2b
FIX #37259 - Reverse Charge also for non-EEC countries (#37260)
See issue #37259:

Currently, reverse charge is only applied, if the supplier is based in the EEC.

At least for a German B2B customers, reverse charge has to get applied to any supplier outside of the home country.

The fix is non-invasive by providing a const ACCOUNTING_REVERSE_CHARGE_ALSO_NON_EEC to allow for a broader application of the already implemented RC rules.
2026-02-17 18:04:02 +01:00
VIAL-GOUTEYRON Quentin
81ac910ede
FIX: align permission checks for product batches with rights class aliases (#37263) 2026-02-17 17:37:19 +01:00
tcesar
41294d5a27
Fix export extra-fields of warehouses (#37264) 2026-02-17 14:36:54 +01:00
Anthony Berton
03ab77c861
setPaymentTerms (#37232)
Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-17 01:37:13 +01:00
Laurent Destailleur
da4baf4255 CI 2026-02-16 21:43:56 +01:00
Laurent Destailleur
bff98ad817 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-16 21:11:20 +01:00
Laurent Destailleur
7ccd12e865 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2026-02-16 21:08:22 +01:00
Laurent Destailleur
e64ab3c751 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2026-02-16 20:51:44 +01:00
Laurent Destailleur
6adc5dc78d Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2026-02-16 20:47:21 +01:00
Laurent Destailleur
2a41e1f714 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2026-02-16 20:44:36 +01:00
Günter Lukas
917c2d6be8
Add check for empty delivery date before setting (#37254) 2026-02-16 20:12:21 +01:00
Joachim Kueter
7a37ebbeb3
FIX: Clean filenames with double spaces (#37256)
* Clean filenames with double spaces

If a filename contains double spaces, it can get uploaded in Dolibarr exactly as it is.

When listing the file or trying to download it, the dolibarr functions clear double spaces in the filename. In particular the alpha parameter for GETPOST.

This results in files being uploaded (e.g. attachments for invoices) than can get listed but remain inaccessible and even cannot get deleted via UI. 

We either need to fix all these places to accept double spaces or we change a single location, when we sanitize filenames.

* removed white space
2026-02-16 20:03:22 +01:00
Alexandre SPANGARO
83b137d854
FIX Luxembourg VAT rate by default (17% since 2024-01-01) (#37255) 2026-02-16 20:01:27 +01:00
Laurent Destailleur
9f4674806e Fix CI 2026-02-16 20:00:45 +01:00
Alexandre SPANGARO
30f7f34708
FIX Societe - Wrong control on update of VAT Intra (#37224) 2026-02-16 19:54:09 +01:00
Laurent Destailleur
ed868d6dd3 FIX #37072 2026-02-12 18:56:00 +01:00
ThomasNgr-OpenDSI
a8e0508343
Sec: Can init a page with php content without permission for php content (#37211)
edition (reported by phdwg1410)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-12 16:30:45 +01:00
Eric - CAP-REL
e850355b30
Refactor GitHub Actions workflow steps
Remove depends on gh and only use curl and requests on github api ...
2026-02-12 09:37:04 +01:00
Alexandre SPANGARO
673659de98
FIX Accountancy - Update height of the export popup (#37206) 2026-02-12 01:23:06 +01:00
Laurent Destailleur
1a83124ca6 FIX closing an deposit invoice when payment was too high. 2026-02-12 00:38:04 +01:00
Laurent Destailleur
718f318089 Fix error when setup not complete. 2026-02-11 22:53:55 +01:00
Laurent Destailleur
da6de62ad9 Fix log 2026-02-11 20:37:57 +01:00
Laurent Destailleur
7a1a00e5d3 Complete examplefor tooltip to setup a virtual host 2026-02-11 18:44:15 +01:00
Laurent Destailleur
bf9e154deb Fix init ref 2026-02-11 18:07:37 +01:00
Laurent Destailleur
094e42fd4f Fix init ref 2026-02-11 18:03:03 +01:00
Laurent Destailleur
5846921e37 Sec: Can init a page with php content without permission for php content
edition (reported by phdwg1410)
2026-02-11 17:53:09 +01:00
Laurent Destailleur
d87b93cebd Fix missing br 2026-02-11 16:46:16 +01:00
Vincent Penel
e43438cc7b
Fix/ticket status (#37129)
* set oldCopy and Status

* Update ticket.class.php

* Question Eldy

* Fix event status change

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-10 15:40:05 +01:00
ThomasNgr-OpenDSI
0b8e0c4765
FIX display of DLC/DLUO in tooltip (#37164) 2026-02-10 15:30:40 +01:00
atm-jonathan
4532d69220
Add missing CSRF tokens in bank left menu links (#37181)
* Add missing CSRF tokens in bank left menu links

* clean QUAL

* Update eldy.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-10 15:15:43 +01:00
Alexandre SPANGARO
0cc80e65ed
FIX SQL Error on VAT not defined in product card (#37159) 2026-02-09 18:33:54 +01:00
kkhelifa-opendsi
7b5ddac963
FIX: Backport fix on v20 for result page of compta (/compta/resultat/index.php) (#37127)
* FIX: Backport fix on v20 for result page of compta (/compta/resultat/index.php). The expense report were not included when the module was activated

* Update index.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 22:25:58 +01:00
yveslg
4951edfbd0
Fix/accountancy pdf wrong labels (#37153)
* FIX #37147 Limit account fetch to active chart of accounts in PDF exports

When multiple chart of accounts have the same account number, the PDF
exports (balance and ledger) could retrieve the wrong account label.

* FIX #37147 Decode HTML entities in balance PDF account group labels

The balance PDF export was displaying HTML entities (like &EACUTE;) instead
of properly decoded characters (like É) in account group labels.
2026-02-08 20:09:40 +01:00
Laurent Destailleur
e596bdada1 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2026-02-08 15:53:06 +01:00
Laurent Destailleur
7f9bdc5f45 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2026-02-08 15:50:12 +01:00
Laurent Destailleur
b220cf0832 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2026-02-08 15:48:06 +01:00
Eric - CAP-REL
94d4f2661d
MEMBER_ADDON does not exists, MEMBER_CODEMEMBER_ADDON is the right key (#37151) 2026-02-08 15:38:36 +01:00
Laurent Destailleur
9ec77dada2 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-08 14:54:15 +01:00
Laurent Destailleur
afc3879d84 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-08 14:53:59 +01:00
Florian Hödl
4660d0eec9
FIX #37118 Add missing require_once for CMailFile and functions2 in advtargetemailing (#37136)
Co-authored-by: Florian Hödl <florian@hoedl.co>
2026-02-08 14:47:11 +01:00
Alexandre SPANGARO
7bb57721bb
FIX Invoice - Don't show discount on credit note type (#37145) 2026-02-08 14:29:25 +01:00
Laurent Destailleur
01e947cfad Rename var 2026-02-08 13:10:29 +01:00
Joachim Kueter
3361d4b0ba
Fix: auto-generate pdf from odt-templates also for not yet validatedocuments (#37082)
* Fix: auto-generate pdf from odt-templates also for not yet validated documents

Not validated documents have a ref containing (PROV

When auto-generating pdf documents from odt documents is activated, this fails for not validated documents: the brackets ( ) in the ref are getting escaped twice which leads the pdf generation to fail.

The change removes the double escaping, the$command is already escaped before. With this change, also for unvalidated documents, pdf documents are getting generated.

* replace ( ) for escapeshellcmd

temporarily replace ( ) by placeholders to avoid them getting escaped

check that no placeholder injection happened before

apply to both execmethods (1 and 2)

* Retrigger check
2026-02-08 00:04:45 +01:00
Anthony Berton
6ef62a45b5
FIX - getModuleDirForApiClass for propal (#37098)
Co-authored-by: Anthony Berton <anthony.berton@bb2a.fr>
2026-02-07 23:44:57 +01:00
Francis Appels
7eae776e13
Fix #37089, still some checks on PRODUIT_SOUSPRODUITS_ALSO_ENABLE_PARENT_STOCK_MOVE (#37115) 2026-02-07 23:28:36 +01:00
atm-lucas
251b57641b
fix timespent in timeline (#37132) 2026-02-07 22:53:52 +01:00
Laurent Destailleur
2b3ae6c2d7 Add logs 2026-02-06 13:16:16 +01:00