From 2eefffd36f87439674716eb9cb6da6fd8fee0705 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 9 Apr 2024 20:08:32 +0200 Subject: [PATCH 1/3] NEW possibility to define a completely inactive module (#29289) --- htdocs/conf/conf.php.example | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/conf/conf.php.example b/htdocs/conf/conf.php.example index 4d8c4f8fadd..525e588810d 100644 --- a/htdocs/conf/conf.php.example +++ b/htdocs/conf/conf.php.example @@ -304,6 +304,15 @@ $dolibarr_main_prod='1'; // $dolibarr_main_restrict_os_commands='mysqldump, mysql, pg_dump, pgrestore, mariadb, mariadb-dump'; +// dolibarr_main_disabled_modules +// ================================== +// To restrict the activation and use of certain potentially security-sensitive modules. +// Default value: array('dav') +// Examples: +// $dolibarr_main_disabled_modules = array('dav'); +// +// $dolibarr_main_disabled_modules = array('dav'); + // dolibarr_main_restrict_ip // ========================= // To restrict access to backoffice to some ip addresses only. Use a comma to separate values. From 6212868aca056b60fa227444e44774cd1c634302 Mon Sep 17 00:00:00 2001 From: Vincent Maury Date: Tue, 9 Apr 2024 20:09:45 +0200 Subject: [PATCH 2/3] regl_mode on new command not set (#29293) When creating a new supplier order, even if the default reglement_mode is set for this supplier, the reglement_mode for the new order is not set. As It is for the cond_reglement I don't understand why my update is ok, but IT IS ! --- htdocs/fourn/commande/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index f56b77ae139..1593f25e08c 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1755,7 +1755,7 @@ if ($action == 'create') { // Payment mode print ''.$langs->trans('PaymentMode').''; print img_picto('', 'bank', 'class="pictofixedwidth"'); - $form->select_types_paiements((GETPOSTISSET('mode_reglement_id') && GETPOST('mode_reglement_id') != 0) ? GETPOST('mode_reglement_id') : $mode_reglement_id, 'mode_reglement_id'); + $form->select_types_paiements((GETPOSTISSET('mode_reglement_id') && GETPOSTINT('mode_reglement_id') != 0) ? GETPOST('mode_reglement_id') : $mode_reglement_id, 'mode_reglement_id'); print ''; // Planned delivery date From 50458efffaf3d1cd7791632018a1318df2f83a39 Mon Sep 17 00:00:00 2001 From: Vincent Maury Date: Tue, 9 Apr 2024 20:19:38 +0200 Subject: [PATCH 3/3] NEW : display product and qty in stock_movement table in project overview (#29296) NEW : in project overview, stock movement section, we only stock movement ref, but not the product and not the quantity This PR solve this --- htdocs/projet/element.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index 8c1d12569e4..2ef4256a946 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -1149,6 +1149,11 @@ foreach ($listofreferent as $key => $value) { print ''; // Ref print ''.$langs->trans("Ref").''; + // Product and qty on stock_movement + if ('MouvementStock' == $classname) { + print ''.$langs->trans("Product").''; + print ''.$langs->trans("Qty").''; + } // Date print ''; if (in_array($tablename, array('projet_task'))) { @@ -1335,7 +1340,13 @@ foreach ($listofreferent as $key => $value) { } } print "\n"; - + // Product and qty on stock movement + if ('MouvementStock' == $classname) { + $mvsProd = new Product($element->db); + $mvsProd->fetch($element->product_id); + print ''.$mvsProd->getNomUrl(1).''; + print ''.$element->qty.''; + } // Date or TimeSpent $date = ''; $total_time_by_line = null;