Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
6a31d4657b
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2021 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||||
@ -21,9 +21,13 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/admin/system/database-tables.php
|
* \file htdocs/admin/system/database-tables.php
|
||||||
* \brief Page with information on database tables
|
* \brief Page with information on database tables. Add also some maintenance action to convert tables.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (! defined('CSRFCHECK_WITH_TOKEN')) {
|
||||||
|
define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
|
||||||
|
}
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
@ -126,14 +130,14 @@ if (!$base) {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>'.$obj->Engine.'</td>';
|
print '<td>'.$obj->Engine.'</td>';
|
||||||
if (isset($obj->Engine) && $obj->Engine == "MyISAM") {
|
if (isset($obj->Engine) && $obj->Engine == "MyISAM") {
|
||||||
print '<td><a class="reposition" href="database-tables.php?action=convert&table='.$obj->Name.'">'.$langs->trans("Convert").' InnoDb</a></td>';
|
print '<td><a class="reposition" href="database-tables.php?action=convert&table='.urlencode($obj->Name).'&token='.newToken().'">'.$langs->trans("Convert").' InnoDb</a></td>';
|
||||||
} else {
|
} else {
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print $obj->Row_format;
|
print $obj->Row_format;
|
||||||
if (isset($obj->Row_format) && (in_array($obj->Row_format, array("Compact")))) {
|
if (isset($obj->Row_format) && (in_array($obj->Row_format, array("Compact")))) {
|
||||||
print '<br><a class="reposition" href="database-tables.php?action=convertdynamic&table='.$obj->Name.'">'.$langs->trans("Convert").' Dynamic</a>';
|
print '<br><a class="reposition" href="database-tables.php?action=convertdynamic&table='.urlencode($obj->Name).'&token='.newToken().'">'.$langs->trans("Convert").' Dynamic</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td align="right">'.$obj->Rows.'</td>';
|
print '<td align="right">'.$obj->Rows.'</td>';
|
||||||
@ -145,7 +149,7 @@ if (!$base) {
|
|||||||
print '<td align="right">'.$obj->Check_time.'</td>';
|
print '<td align="right">'.$obj->Check_time.'</td>';
|
||||||
print '<td align="right">'.$obj->Collation;
|
print '<td align="right">'.$obj->Collation;
|
||||||
if (isset($obj->Collation) && (in_array($obj->Collation, array("utf8mb4_general_ci", "utf8mb4_unicode_ci", "latin1_swedish_ci")))) {
|
if (isset($obj->Collation) && (in_array($obj->Collation, array("utf8mb4_general_ci", "utf8mb4_unicode_ci", "latin1_swedish_ci")))) {
|
||||||
print '<br><a class="reposition" href="database-tables.php?action=convertutf8&table='.$obj->Name.'">'.$langs->trans("Convert").' UTF8</a>';
|
print '<br><a class="reposition" href="database-tables.php?action=convertutf8&table='.urlencode($obj->Name).'&token='.newtoken().'">'.$langs->trans("Convert").' UTF8</a>';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|||||||
@ -212,7 +212,7 @@ if (empty($reshook)) {
|
|||||||
$object->ics = trim(GETPOST("ics", 'alpha'));
|
$object->ics = trim(GETPOST("ics", 'alpha'));
|
||||||
$object->ics_transfer = trim(GETPOST("ics_transfer", 'alpha'));
|
$object->ics_transfer = trim(GETPOST("ics_transfer", 'alpha'));
|
||||||
|
|
||||||
$account_number = GETPOST('account_number', 'alpha');
|
$account_number = GETPOST('account_number', 'alphanohtml');
|
||||||
if (empty($account_number) || $account_number == '-1') {
|
if (empty($account_number) || $account_number == '-1') {
|
||||||
$object->account_number = '';
|
$object->account_number = '';
|
||||||
} else {
|
} else {
|
||||||
@ -754,13 +754,13 @@ if ($action == 'create') {
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
if ($conf->prelevement->enabled) {
|
if ($conf->prelevement->enabled) {
|
||||||
print '<tr><td>'.$langs->trans("ICS").'</td>';
|
print '<tr><td>'.$langs->trans("ICS").' ('.$langs->trans("StandingOrder").')</td>';
|
||||||
print '<td>'.$object->ics.'</td>';
|
print '<td>'.$object->ics.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->paymentbybanktransfer->enabled) {
|
if ($conf->paymentbybanktransfer->enabled) {
|
||||||
print '<tr><td>'.$langs->trans("ICSTransfer").'</td>';
|
print '<tr><td>'.$langs->trans("ICS").' ('.$langs->trans("BankTransfer").')</td>';
|
||||||
print '<td>'.$object->ics_transfer.'</td>';
|
print '<td>'.$object->ics_transfer.'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
@ -1053,12 +1053,12 @@ if ($action == 'create') {
|
|||||||
print '<td><input class="minwidth150 maxwidth200onsmartphone" maxlength="11" type="text" class="flat" name="bic" value="'.$object->bic.'"></td></tr>';
|
print '<td><input class="minwidth150 maxwidth200onsmartphone" maxlength="11" type="text" class="flat" name="bic" value="'.$object->bic.'"></td></tr>';
|
||||||
|
|
||||||
if ($conf->prelevement->enabled) {
|
if ($conf->prelevement->enabled) {
|
||||||
print '<tr><td>'.$langs->trans("ICS").'</td>';
|
print '<tr><td>'.$langs->trans("ICS").' ('.$langs->trans("StandingOrder").')</td>';
|
||||||
print '<td><input class="minwidth150 maxwidth200onsmartphone" maxlength="32" type="text" class="flat" name="ics" value="'.$object->ics.'"></td></tr>';
|
print '<td><input class="minwidth150 maxwidth200onsmartphone" maxlength="32" type="text" class="flat" name="ics" value="'.$object->ics.'"></td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->paymentbybanktransfer->enabled) {
|
if ($conf->paymentbybanktransfer->enabled) {
|
||||||
print '<tr><td>'.$langs->trans("ICSTransfer").'</td>';
|
print '<tr><td>'.$langs->trans("ICS").' ('.$langs->trans("BankTransfer").')</td>';
|
||||||
print '<td><input class="minwidth150 maxwidth200onsmartphone" maxlength="32" type="text" class="flat" name="ics_transfer" value="'.$object->ics_transfer.'"></td></tr>';
|
print '<td><input class="minwidth150 maxwidth200onsmartphone" maxlength="32" type="text" class="flat" name="ics_transfer" value="'.$object->ics_transfer.'"></td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -96,7 +96,7 @@ if (empty($reshook)) {
|
|||||||
$bank = new Account($db);
|
$bank = new Account($db);
|
||||||
$bank->fetch($conf->global->{$default_account});
|
$bank->fetch($conf->global->{$default_account});
|
||||||
if (empty($bank->ics) || empty($bank->ics_transfer)) {
|
if (empty($bank->ics) || empty($bank->ics_transfer)) {
|
||||||
$errormessage = str_replace('{url}', $bank->getNomUrl(1), $langs->trans("ErrorICSmissing", '{url}'));
|
$errormessage = str_replace('{url}', $bank->getNomUrl(1, '', '', -1, 1), $langs->trans("ErrorICSmissing", '{url}'));
|
||||||
setEventMessages($errormessage, null, 'errors');
|
setEventMessages($errormessage, null, 'errors');
|
||||||
header("Location: ".DOL_URL_ROOT.'/compta/prelevement/create.php');
|
header("Location: ".DOL_URL_ROOT.'/compta/prelevement/create.php');
|
||||||
exit;
|
exit;
|
||||||
@ -440,7 +440,7 @@ if ($resql) {
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
// Amount
|
// Amount
|
||||||
print '<td class="right">';
|
print '<td class="right amount">';
|
||||||
print price($obj->amount, 0, $langs, 0, 0, -1, $conf->currency);
|
print price($obj->amount, 0, $langs, 0, 0, -1, $conf->currency);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
// Date
|
// Date
|
||||||
|
|||||||
@ -133,8 +133,7 @@ SEPARCUR=SEPA CUR
|
|||||||
SEPAFRST=SEPA FRST
|
SEPAFRST=SEPA FRST
|
||||||
ExecutionDate=Execution date
|
ExecutionDate=Execution date
|
||||||
CreateForSepa=Create direct debit file
|
CreateForSepa=Create direct debit file
|
||||||
ICS=Creditor Identifier CI for direct debit
|
ICS=Creditor Identifier - ICS
|
||||||
ICSTransfer=Creditor Identifier CI for bank transfer
|
|
||||||
END_TO_END="EndToEndId" SEPA XML tag - Unique id assigned per transaction
|
END_TO_END="EndToEndId" SEPA XML tag - Unique id assigned per transaction
|
||||||
USTRD="Unstructured" SEPA XML tag
|
USTRD="Unstructured" SEPA XML tag
|
||||||
ADDDAYS=Add days to Execution Date
|
ADDDAYS=Add days to Execution Date
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user