fix delay setup
This commit is contained in:
parent
a865388b9c
commit
ffe0420523
@ -4,6 +4,7 @@
|
|||||||
* Copyright (C) 2005 Simon Tosser <simon@kornog-computing.com>
|
* Copyright (C) 2005 Simon Tosser <simon@kornog-computing.com>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||||
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||||
|
* Copyright (C) 2022 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -172,7 +173,7 @@ if (!isset($conf->global->MAIN_DELAY_ORDERS_TO_PROCESS)) {
|
|||||||
|
|
||||||
if ($action == 'update') {
|
if ($action == 'update') {
|
||||||
foreach ($modules as $module => $delays) {
|
foreach ($modules as $module => $delays) {
|
||||||
if (isModEnabled('module')) {
|
if (isModEnabled($module)) {
|
||||||
foreach ($delays as $delay) {
|
foreach ($delays as $delay) {
|
||||||
if (GETPOST($delay['code']) != '') {
|
if (GETPOST($delay['code']) != '') {
|
||||||
dolibarr_set_const($db, $delay['code'], GETPOST($delay['code']), 'chaine', 0, '', $conf->entity);
|
dolibarr_set_const($db, $delay['code'], GETPOST($delay['code']), 'chaine', 0, '', $conf->entity);
|
||||||
@ -226,7 +227,7 @@ if ($action == 'edit') {
|
|||||||
print '<td class="right">'.$langs->trans("LateWarningAfter").'</td></tr>';
|
print '<td class="right">'.$langs->trans("LateWarningAfter").'</td></tr>';
|
||||||
|
|
||||||
foreach ($modules as $module => $delays) {
|
foreach ($modules as $module => $delays) {
|
||||||
if (isModEnabled('module')) {
|
if (isModEnabled($module)) {
|
||||||
foreach ($delays as $delay) {
|
foreach ($delays as $delay) {
|
||||||
$value = (!empty($conf->global->{$delay['code']}) ? $conf->global->{$delay['code']} : 0);
|
$value = (!empty($conf->global->{$delay['code']}) ? $conf->global->{$delay['code']} : 0);
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
@ -260,7 +261,7 @@ if ($action == 'edit') {
|
|||||||
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("DelaysOfToleranceBeforeWarning").'</td><td class="right">'.$langs->trans("Value").'</td></tr>';
|
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("DelaysOfToleranceBeforeWarning").'</td><td class="right">'.$langs->trans("Value").'</td></tr>';
|
||||||
|
|
||||||
foreach ($modules as $module => $delays) {
|
foreach ($modules as $module => $delays) {
|
||||||
if (isModEnabled('module')) {
|
if (isModEnabled($module)) {
|
||||||
foreach ($delays as $delay) {
|
foreach ($delays as $delay) {
|
||||||
$value = (!empty($conf->global->{$delay['code']}) ? $conf->global->{$delay['code']} : 0);
|
$value = (!empty($conf->global->{$delay['code']}) ? $conf->global->{$delay['code']} : 0);
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user