Commit graph

151292 commits

Author SHA1 Message Date
ldestailleur
546969e77a Try a better fix for #33699 2025-04-02 19:20:18 +02:00
Christophe Battarel
2c6c3a90d2
manage read_supplier_prices permission also on stock movement list (#33700)
Co-authored-by: Christophe Battarel <christophe@altairis.fr>
2025-04-02 19:13:24 +02:00
ldestailleur
6c9922ca36 Fix mem 2025-04-02 18:53:54 +02:00
ldestailleur
b466b7ab5a NEW The link "In accountancy" is now clicable to reach bookkeeping 2025-04-02 18:51:51 +02:00
ldestailleur
ca6c3db534 Trans 2025-04-02 15:36:40 +02:00
ldestailleur
1c84b79369 Fix conf file 2025-04-02 15:07:44 +02:00
ldestailleur
a1f19dd6da Fix link 2025-04-02 14:23:36 +02:00
ldestailleur
c23d5be678 Clean code 2025-04-02 13:23:05 +02:00
ldestailleur
f9e4e20ab7 Clean code 2025-04-02 12:46:40 +02:00
Florian Mortgat
78dee78508
FIX v22 warnings and remove seemingly useless code (#33622) 2025-04-02 12:43:37 +02:00
Marc de Lima Lucio
363b05d314
FIX: warehouse list: broken status filter (#33667) 2025-04-02 12:30:53 +02:00
atm-irvine
822f5dfa88
feat(pdf): new conf to remove break before country in pdf (#33696) 2025-04-02 12:29:47 +02:00
ldestailleur
217ae3691a Fix phpunit
Signed-off-by: ldestailleur <eldy@destailleur.fr>
2025-04-02 12:26:25 +02:00
atm-jonathan
d72d69e55c
NEW add home box mrp (#33549)
* add box Mo

* tests ok

* comparaison dates

* before Wysy

* after wysy

* Update mo.class.php

* Update mo.class.php

* Update conf.class.php

* retour PR

* add parenthesis

* Update mo_list.php

---------

Co-authored-by: x <x@x.x>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-02 12:22:59 +02:00
MDW
6fe1effa5e
Qual: Fix PhanTypeMismatchArgumentNullable notices (#33684) 2025-04-02 11:35:53 +02:00
omogenot
083a3908bd
Move reassort hooks before the last 3 columns (#33695)
Move the user hooks in the reassort table so that the new columns shall show before the 'movement', 'tobuy','to sell' columns for aesthetics presentation.
Not doing so makes the table look odd when adding custom columns.
2025-04-02 11:35:33 +02:00
ldestailleur
5e616669b6 Propagate fix #33689 to other objects 2025-04-02 11:34:12 +02:00
MDW
5cc0bd0a3f
Fix #33689 - missing rename (#33693)
# Fix #33689 - missing rename

Assignment to $result in code before fixing phan notice
seem be an error, but in fact the assignment is useless
and the code only expects a potential exception.
2025-04-02 11:31:10 +02:00
George Stavropoulos
b3d7e1242a
Security fix company.php (#33694)
Security fix: 

Changed AADE webservice key fields (MYDATA_AADE_KEY, AADE_WEBSERVICE_KEY) input type from text to password to prevent Shoulder Surfing. (This applies to the // AADE webservices credentials, applicable only for Greece section).
2025-04-02 11:28:12 +02:00
Frédéric FRANCE
51624f8a50
deprecate statut (#33691)
* deprecate statut

* Update fichinter.class.php

* clean code

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-02 11:27:17 +02:00
VIAL-GOUTEYRON Quentin
3ad05c2dde
FIX: Incorrect entity used when downloading a document generated in another entity (#33565)
* FIX : Wrong entity to download document

* MODIFICATION : Remplacement de l'ID d'entité par l'objet dans les fonctions de gestion des fichiers pour une meilleure cohérence.

* Update files.lib.php

* Update files.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-01 23:13:31 +02:00
ldestailleur
91fa444129 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-01 22:42:32 +02:00
ldestailleur
352e35a38b Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-04-01 22:40:07 +02:00
ldestailleur
e1273a410a FIX for #33403 and #33404 2025-04-01 22:37:23 +02:00
ldestailleur
b333f656c9 Replace option with param 2025-04-01 22:32:31 +02:00
kkhelifa-opendsi
0029e14fb6
NEW: Add globale MAIN_DISABLE_PDF_AUTO_DOWNLOAD_AFTER_CONVERT_FROM_ODT for disable the auto download after auto convert odt to pdf (#33511) 2025-04-01 22:30:03 +02:00
Etienne BENDER
d73df8d931
Add hook printObjectLinesList in CommonObject::printObjectLines() (#33641)
* Add hook printObjectLinesList in CommonObject::printObjectLines()

* Update commonobject.class.php

* Update commonobject.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-01 22:24:35 +02:00
ldestailleur
ffa7413cda Clean code 2025-04-01 22:14:56 +02:00
omogenot
73eb4e606a
NEW : Rounding unit price - line discount before applying quantity - option MAIN_APPLY_DISCOUNT_ON_UNIT_PRICE_THEN_ROUND_BEFORE_MULTIPLICATION_BY_QTY (#33690)
* Rounding unit price - line discount before applying quantity

On some systems, the line total price is calculated based on the discount applied on the unit price first, giving a new rounded unit price, and then multiplied by the quantity. Whereas the current way Dolibarr acts is to apply the discount on the subtotal (unit price * quantity).
Using an extra OTHER SETUP constant 'MAIN_ROUND_UNIT_PRICE_BEFORE_QTY', we can choose between the two ways.

* Update price.lib.php

* Update price.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-01 21:36:52 +02:00
Jon Bendtsen
27dc84fe3b
NEW Can link member subscription/contribution with proposal, order and invoice (#33647)
* linking member subscription contribution <-> proposal, order and invoice
This can both be done manually from an existing proposal/order/invoice to a subscription created without creating an invoice. I use this when we sell memberships as part of registration for our membership classes.

The link will also be shown on the invoice that can be created as part of the subscription contribution creation.

These links show up in the json from the API on proposals, orders and invoices. The subscription does not show anything. It is currently unknown if the API can do this link or it will have to be done manually in the GUI.

* Update html.form.class.php

---------

Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-01 21:36:35 +02:00
ldestailleur
65fb217432 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-01 21:34:25 +02:00
ldestailleur
a9568c448c Look and feel v22 2025-04-01 21:32:56 +02:00
ldestailleur
8e88532c3e Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-04-01 21:07:20 +02:00
Frédéric FRANCE
387e3b1da7
shipping can manage its contacts (#33680)
* shipping can manage its contacts

* shipping can manage its contacts

* fix

* add contacts from origin

* clean code

* apply changes

* apply changes
2025-04-01 20:47:40 +02:00
ldestailleur
514e367d94 Rename constant 2025-04-01 20:46:31 +02:00
ldestailleur
21b5eb7b82 Debug migrate using the database flag 2025-04-01 20:45:46 +02:00
ldestailleur
de75d13c7a Use a database flag 2025-04-01 20:36:55 +02:00
atm-GregM
a1c31310a2
Add Massactions Validate/Cancel/RegeneratePDF/MergePDF/EditStartDate/EditeEndDate on Mo List (#33548)
* Add Massaction Mo List

* add langs en_US

* fix for precommit

* langs

* langs+

* int param

* space

* Update mo_list.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-01 20:35:34 +02:00
Marc de Lima Lucio
5832f1807c
FIX: invoice export models are incorrect after 20.0 migration (#33688)
* FIX: shift export models at upgrade

* FIX: 20.0 invoice export model mogrations: place lock in root of data dir
2025-04-01 20:29:06 +02:00
ldestailleur
e9b880707a Clean code 2025-04-01 20:13:54 +02:00
ldestailleur
f7d034a71c NEW Option MAIN_SECURITY_MAXFILESIZE_DOWNLOADED become official 2025-04-01 19:56:50 +02:00
ldestailleur
0780695ba4 Try CI fix 2025-04-01 19:29:24 +02:00
ldestailleur
f5a61d9dc4 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-01 19:26:49 +02:00
ldestailleur
105347003c Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-04-01 19:24:06 +02:00
Laurent Destailleur (aka Eldy)
62fba4f84d Add missing try catch 2025-04-01 19:23:47 +02:00
ldestailleur
7d0581b046 FIX Add a try catch to avoid fatal error on bad translation string
format
2025-04-01 19:05:59 +02:00
ldestailleur
16c76a6505 FIX The payment mode for salary on credit transfer must be credit
transfer
2025-04-01 18:50:12 +02:00
ldestailleur
17dfec8ee4 FIX Edit of payment mode from the bank transfer tab of salary 2025-04-01 18:44:45 +02:00
ldestailleur
4e9060b9d9 Fix translation 2025-04-01 18:22:59 +02:00
ldestailleur
493bfdc207 Clean code 2025-04-01 18:12:04 +02:00