2
0
forked from Wavyzz/dolibarr
Commit Graph

129126 Commits

Author SHA1 Message Date
ldestailleur
8a89cc3f04 FIX phpunit 2025-03-24 20:52:13 +01:00
ldestailleur
2dc191afe2 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-24 18:23:46 +01:00
ldestailleur
1726312fc3 Fix travis 2025-03-24 18:23:31 +01:00
Charlène Benke
936d0eeae1 Add sold amount on api call (V2) (#33589)
* Add sold amount on api call (V2)

other way to implement it

* Update api_bankaccounts.class.php

Use the non deprecated property name.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-24 16:43:32 +01:00
Mathieu Schiffmann
b9946cef4a NEW #33506 Add a constant to apply a ratio to resize images in ODT templates (#33543)
* CLOSE #33506 add a constant holding the ratio to resize images in ODT templates

A new Dolibarr constant 					MAIN_DOC_ODT_IMAGE_RATIO
is taken in consideration for ODT templates.
This constant holds a number that is multiplied when computing the size of images in ODT templates.
All doc_generic_*_odt_modules.php files have been updated to call the setImage Method with a new parameter $ratio
The method setImage in the file odt.php has been modified to have a new parameter $ratio and use it to compute the image size

* FIX #33506 wrong branch

some other files needed to be changed in the develop branch

* FIX #33506 PR errors fixed

* FIX #33506 codesniffer errors fixed

* QUAL #33506 completed method comment
2025-03-24 16:41:00 +01:00
kkhelifa-opendsi
73e54ae77e FIX: rename and add class for column total_ttc in line template (view and title) (#33590) 2025-03-24 16:39:13 +01:00
lvessiller-opendsi
125b61dfd7 FIX #33595 - Click on add component for virtual product (#33596) 2025-03-24 16:38:28 +01:00
Frédéric FRANCE
eaf2194bd2 fix directory url (#33592)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-24 16:37:26 +01:00
ldestailleur
65536f6f70 Fix phpstan warnings 2025-03-24 16:22:14 +01:00
ldestailleur
af7cb49413 Avoid false positive of phpstan 2025-03-24 15:52:59 +01:00
ldestailleur
764ec36e38 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-24 15:42:24 +01:00
ldestailleur
a98c6b309f Ignore phan false positive 2025-03-24 15:42:07 +01:00
kkhelifa-opendsi
963fb2a41c FIX : If the global INVOICE_CAN_NEVER_BE_EDITED disabled the action 'modify' of a invoice, we test in the point of entry of the action and not after we make many useless tests (#33594)
* FIX : If the global INVOICE_CAN_NEVER_BE_EDITED disabled the action 'modify' of a invoice, we test in the point of entry of the action and not after we make many useless tests

* Correction
2025-03-24 15:34:58 +01:00
ldestailleur
8cc029dddf Make code simpler 2025-03-24 15:30:34 +01:00
ldestailleur
216bb4da63 Fix warnings 2025-03-24 15:25:29 +01:00
ldestailleur
966aff2095 Reduce nb of result combinations type fot getURLContent 2025-03-24 15:23:13 +01:00
ldestailleur
1338ea41e4 Fix phpstan 8.2 2025-03-24 15:16:44 +01:00
ldestailleur
7201222753 Test of a security fix backport. 2025-03-24 13:58:17 +01:00
ldestailleur
7ce20a5ff3 FIX blank page on smartphone for bank SEPA direct transfer page 2025-03-24 13:01:08 +01:00
ldestailleur
ad36e0f33f FIX blank page on smartphone for bank SEPA direct transfer page 2025-03-24 13:00:35 +01:00
ldestailleur
2e3c4d57a6 Fix includes 2025-03-24 12:56:11 +01:00
ldestailleur
e1351bdd18 FIX Translation of column in list of invoice 2025-03-24 12:54:32 +01:00
ldestailleur
911bfa2883 FIX Translation of column in list of invoice 2025-03-24 12:49:46 +01:00
ldestailleur
920c84a056 NEW No auto open keyboard on smartphone when opening list of columns 2025-03-24 12:48:38 +01:00
ldestailleur
5096063676 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-24 01:29:48 +01:00
ldestailleur
e6ae89938e Fix warning 2025-03-24 01:29:38 +01:00
Alexandre SPANGARO
12721e5337 NEW Accountancy - Add column on chart of accounts to enable or not centralized account (#33577) 2025-03-24 01:28:09 +01:00
ldestailleur
13d1cc06d7 Fix warning 2025-03-24 01:24:40 +01:00
itkuchlbauer
5464159418 add exportFile parameter to accountancyexport hook (#33583) 2025-03-24 01:22:56 +01:00
lvessiller-opendsi
f9e42e82d5 FIX #33563 - Discount amount count twice when create a discount from a deposit invoice (#33564) 2025-03-24 01:22:16 +01:00
lvessiller-opendsi
5ffcca92a6 NEW input reason for customer invoice (SQL) (#33569) 2025-03-24 01:20:50 +01:00
ldestailleur
f44a730430 Fix remove debug test 2025-03-24 01:15:35 +01:00
Frédéric FRANCE
487d6476ce fix CI (#33581)
* fix CI

* clean phpstan baseline
2025-03-24 01:08:08 +01:00
ldestailleur
f4310e465f Clean code of menu 2025-03-23 16:18:38 +01:00
ldestailleur
fd243a00f6 Look and feel 2025-03-22 16:42:16 +01:00
ldestailleur
eb885d89af Code comment 2025-03-22 14:05:48 +01:00
ldestailleur
299192d258 Method Categoie->getObjectsInCateg() is deprecated. Try by using instead
getListForItem().
2025-03-22 12:32:46 +01:00
ldestailleur
5b9a8ca4a0 Better error management 2025-03-21 14:47:35 +01:00
ldestailleur
c947faeff1 NEW Update of currency supports also apilayer (not only currencylayer) 2025-03-21 14:40:56 +01:00
Laurent Destailleur
7011d01bde NEW Web pages of websites are protected by the WAF 2025-03-21 13:01:23 +01:00
Laurent Destailleur
71516d2f7a Doc 2025-03-21 12:31:39 +01:00
Laurent Destailleur
d9ab7c58d1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-21 12:13:59 +01:00
Laurent Destailleur
8616e23e31 Move the WAF code into a dedicated include file 2025-03-21 12:11:23 +01:00
Alexandre Janniaux
7edba256e8 migration: 21→22: fix wrong type for value in llx_const #33554 (#33555)
llx_const.value is a string and using it as an int triggers the following
errors when using a PostgreSQL database.

        Erreur DB_ERROR_42883 (Req 83): INSERT INTO llx_const (name, entity, value, type, visible, note) SELECT DISTINCT 'STOCK_DISALLOW_NEGATIVE_TRANSFER', entity, 1, 'chaine', 0, '' FROM llx_const c1 WHERE NOT EXISTS (SELECT rowid FROM llx_const c2 WHERE c2.name = 'STOCK_ALLOW_NEGATIVE_TRANSFER' AND c2.value = 1 AND c2.entity = c1.entity);ERROR: 42883: operator does not exist: text = integer LINE 1: ...me = 'STOCK_ALLOW_NEGATIVE_TRANSFER' AND c2.value = 1 AND c2... ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. LOCATION: op_error, parse_oper.c:635
        --
        Erreur DB_ERROR_42883 (Req 84): UPDATE llx_const SET name = 'STOCK_DISALLOW_NEGATIVE_TRANSFER', value = 1 WHERE name = 'STOCK_ALLOW_NEGATIVE_TRANSFER' AND value = 0;ERROR: 42883: operator does not exist: text = integer LINE 1: ... WHERE name = 'STOCK_ALLOW_NEGATIVE_TRANSFER' AND value = 0; ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. LOCATION: op_error, parse_oper.c:635
        Erreur DB_ERROR_42883 (Req 85): DELETE FROM llx_const WHERE name = 'STOCK_ALLOW_NEGATIVE_TRANSFER' AND value = 1;ERROR: 42883: operator does not exist: text = integer LINE 1: ... WHERE name = 'STOCK_ALLOW_NEGATIVE_TRANSFER' AND value = 1; ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. LOCATION: op_error, parse_oper.c:635

Fixes #33554
2025-03-21 00:37:22 +01:00
Nicolas Domenech
3d1276fa41 Fix: PHP8 warning on showOutputField for various type (#33556) 2025-03-21 00:36:35 +01:00
ldestailleur
ff1131d921 Look and feel v22 2025-03-21 00:33:57 +01:00
ldestailleur
dbd080d82f Look and feel v22 2025-03-21 00:32:03 +01:00
ldestailleur
65496604b4 Debug ai v22 2025-03-20 23:54:24 +01:00
Lucas Marcouiller
5f211c64ec New ai feature dropdown + translate (#33545)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-20 19:32:01 +01:00
ldestailleur
6ce72f78df Fix CI 2025-03-20 18:51:29 +01:00