Commit Graph

14296 Commits

Author SHA1 Message Date
Noé Cendrier
a18103187c NEW: Management of extrafields on customer prices, level prices and default prices (#31313)
* ADD: Management of extrafields on customer prices, level prices and default prices

* ADD: sql table for managing extrafields on customer prices, level prices and default prices

* FIX: Add actions to update, add, delete extrafields and display extrafield

* FIX: colspan for customer price table

* ADD: Management of extrafields on customer prices

* FIX: Value and search for price label

* ADD: name in the files

* FIX: *

* FIX: PHP-cs fail

* FIX: comment in english, please

* FIX: variable naming and testing

* FIX: GETPOST array

* FIX: return is an array of strings, object array will be modified as well

* FIX: return array keys for Extrafields::fetch_name_optionals_label are string too

* FIX: do not mess with extrafields code and value

* Update llx_product_customer_price_extrafields.sql

* Update llx_product_price_extrafields.sql

* FIX: whooopsie

* FIX: PHP warnings

---------

Co-authored-by: Mélina JOUM <melina.joum@altairis.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-19 09:50:18 +02:00
UltraViolet33
c023c3b8c3 FIX attached files not sent in empty email (#31444)
When we send an email with empty text content but with attached file, the file was not sent.

Co-authored-by: Ulysse Valdenaire <uvaldenaire@easya.solutions>
2024-10-19 01:26:02 +02:00
Laurent Destailleur
cf6b02b341 Fix regression, avoid using global variable 2024-10-18 15:35:24 +02:00
Laurent Destailleur
b43f0079d6 css 2024-10-18 04:14:02 +02:00
Laurent Destailleur
622a296d0e Look adn feel v21 2024-10-17 22:20:39 +02:00
Laurent Destailleur
a41a162e2b NEW Look and feel 2024-10-17 21:01:20 +02:00
Laurent Destailleur
3ef895d8c4 Debug v21 2024-10-17 03:57:13 +02:00
UltraViolet33
e8f1c47424 NEW: default configuration for event reminder (#31407)
* NEW: default configuration for event reminder

Set default reminder period + default email template for specific event types in agenda configuration.
Auto fill the notification event form on event creation when event type is in the event types set to use default reminder

* fix for ci

* fix offset value

---------

Co-authored-by: Ulysse Valdenaire <uvaldenaire@easya.solutions>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-17 03:13:44 +02:00
Laurent Destailleur
8562dd887b Merge 2024-10-17 02:15:53 +02:00
Frédéric FRANCE
0c678878b7 fix typo of hidden parameter in commonobject.class.php (#31417)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-17 01:24:15 +02:00
Laurent Destailleur
82f65a6410 NEW Can choose the zip handler to build ODT 2024-10-17 00:31:53 +02:00
Laurent Destailleur
956a039082 Merge branch 'develop' of github.com:Dolibarr/dolibarr into develop 2024-10-16 20:47:12 +02:00
Laurent Destailleur
9ad71b980a NEW Can choose the zip handler to build ODT 2024-10-16 20:46:52 +02:00
Laurent Destailleur
d28ed5339b Look and feel v21 2024-10-16 14:37:25 +02:00
MDW
cad13e85e3 Qual: Fix smtps.class (#31403)
# Qual: Fix smtps.class

Fix most phan notices in smtps.class
2024-10-15 15:49:41 +02:00
MDW
0524358377 Qual: Fix phan notices in dolgraph class (#31399)
# Qual: Fix phan notices in dolgraph class

This fixes most notices in the dolgraph class.
2024-10-15 15:46:19 +02:00
MDW
6f6826e387 Fix: ci phan notice (#31400)
# Fix: ci phan notice

 is ok to be used for .
2024-10-15 15:38:43 +02:00
Laurent Destailleur
1a2ac35985 Look and feel v21 - text to select email template into the placeholder 2024-10-15 00:13:53 +02:00
Laurent Destailleur
ec53c62a7e Debug layout feature for v21 2024-10-15 00:07:08 +02:00
Laurent Destailleur
fad083e29b Debug layout feature for v21 2024-10-14 23:38:14 +02:00
Laurent Destailleur
ac1526d0d1 FIX selectSupplierOrderStatus to work with special status '6,7' 2024-10-14 22:35:28 +02:00
Laurent Destailleur
046166f483 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-14 21:38:12 +02:00
Regis Houssin
7b81cccc55 FIX uniformize and check delete contact action (#31384)
* FIX uniformize and check delete contact action

* FIX syntax error

* FIX missing private contact checking

* FIX missing show errors

* FIX missing "oldcopy" for trigger

* FIX missing private contact filter in selectcontact
2024-10-14 16:45:46 +02:00
MDW
53cfbc35be Qual: Fix several phan & stan notices (#31308)
* Qual: Fix several phan & stan notices

# Qual: Fix several phan & stan notices

Several fixes in files while fixing UnknownClass notices

* Qual: Update prepare_head PHPDoc return types

# Qual: Update prepare_head PHPDoc return types

Provide detailed array return types for prepare_head functions.

* Fix new phan notice

* Better loadLangs typing and fix call to loadLangs

* Fix new issues (stats)

* Other fixes of new issues

* Qual: update phan baseline
2024-10-14 01:59:44 +02:00
Laurent Destailleur
4a2043e7a0 Merge 2024-10-14 01:21:40 +02:00
Laurent Destailleur
47500d56f3 Doc 2024-10-14 01:15:54 +02:00
MDW
8609df383a Qual: fix phan notices (#31368)
* Qual: fix phan notices

# Qual: fix phan notices

Fix phan/phpstan notices, mostly in html,formmail

* Ignore phpstan exception
2024-10-14 00:36:42 +02:00
IC-Mathieu
9c0704ee56 NEW : care grandchild (#31314)
* NEW_CARE_GRANDCHILD

* Update commonobject.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-13 21:10:42 +02:00
Zephyriony
f3f41ec546 NEW Hide completed items in Link to (#31329)
* NEW Hide completed items in Link to

Hide completed items in Link to to avoid endless lists of elements

* Update html.form.class.php

* Update html.form.class.php
2024-10-13 21:01:57 +02:00
Mohamed DAOUD
b4732da616 NEW: Star Field Type for Extra Fields (#31348)
* stars type for extrafields

* min value

* fix phan
2024-10-13 17:24:15 +02:00
MDW
611019ec4d Qual: Fix WARNING messages in syslog - add getCallerInfoString() (#31351)
* Qual: Fix dolIsTms() call with empty string

# Qual: Fix dolIsTms() call with empty string

The dolibarr log indicated that dolIsTms() was called with the
empty string:

- Add code to log the caller in the log;
- Fix the dolIsTms() calls by updating project/element.php

* Fix comparison of ''<0

# Fix comparison of ''<0

As ''<0 is true, non-existing errors were added resulting in
Try to add a message in stack, but value to add is empty message
in the log.
2024-10-13 17:17:37 +02:00
MDW
d7b2f95baf Qual: Fix phan notices (#31372)
* fix llx_webhook_target-webhook.sql

* Fix commande/list & facture-rec.class

* Fix bonprelevement

* Qual: Fix prelevement/create notices

* Qual: fix quadridetail notices & update baseline

* Qual: Fix CommonDocGenerator notices

* Qual: Fix commoninvoice and commonobjectline notices (phan/phpstan)

---------

Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
2024-10-13 16:45:42 +02:00
Laurent Destailleur
611cd80255 WIP on upload page 2024-10-13 13:59:11 +02:00
Laurent Destailleur
185d7f4358 Fix output 2024-10-13 13:18:16 +02:00
Laurent Destailleur
740bfe3442 Fix style section in html header lost 2024-10-13 02:01:14 +02:00
Laurent Destailleur
fc8e85158d NEW Can set parameters with setup type yesno. 2024-10-12 01:50:18 +02:00
Laurent Destailleur
a45af7e4c4 Fix responsive 2024-10-11 19:41:31 +02:00
Mohamed DAOUD
1ea380c5c2 Code Update For Migration of llx_categorie_bank content into llx_categorie (#31306)
* move category_bank to categorie

* fix

* fix cast

* fix phpunit
2024-10-09 01:48:05 +02:00
Mohamed DAOUD
ae206bcc22 fix stars (#31317) 2024-10-09 01:00:34 +02:00
Laurent Destailleur
a4b0947729 Fix phan 2024-10-07 15:46:49 +02:00
Laurent Destailleur
13af557597 Enable cache 2024-10-07 15:45:17 +02:00
MDW
bde0f0d794 Qual: Fix ci (phpstan notice) (#31301)
# Qual: Fix ci (phpstan notice)

While fixing the ci notice, also fixed the array definitions
which fixes both phan notices and phpstan notices seen on cti.
Removed the exception for phan on this file
2024-10-07 15:44:06 +02:00
Laurent Destailleur
a7db9f8b75 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-10-07 15:23:41 +02:00
Laurent Destailleur
081d3fabfc Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-10-07 15:20:16 +02:00
Laurent Destailleur
58cc96cd33 QUAL All $conf->global->module->enabled are replaced with isModEnabled() 2024-10-07 14:40:29 +02:00
Laurent Destailleur
9b378d74af Look and feel v21 2024-10-07 12:40:50 +02:00
Laurent Destailleur
2737f713d9 Debug v21 2024-10-07 11:58:32 +02:00
Laurent Destailleur
93a872e8e1 PERF: Reduce size for VCF files and virtualcard qrcode 2024-10-06 21:08:40 +02:00
Joachim Kueter
63f6d0aa43 Fix: Number of decimals for stock values ignores configuration (#31285)
* Fix: Number of decimals for stock values ignores configuration

In the select filed for adding a new line for a proposal/invoice/... product as a line, the stock level is always printed with exactly two decimals.

The number of decimals should be controlled by the existing global variable MAIN_MAX_DECIMALS_STOCK, but it is not taken into account:

Building the stock level with the function price from the function price2num, which uses the configured number of decimals always lead to exactly two decimals.

* Fixed patch according to suggestion.
2024-10-06 13:53:16 +02:00
MDW
f70c945931 Qual: Fix phan/stan notices (#31271)
# Qual: Fix phan/stan notices in relation with UnknownObjectMethodCall

Fix notices in classes with UnknownObjectMethodCall notices or classes
related with these.
2024-10-05 18:55:36 +02:00