FIX php8 compatibility
This commit is contained in:
parent
c1f35695f4
commit
64c92eda24
@ -515,7 +515,7 @@ print '<td>';
|
|||||||
print '<input type="hidden" name="action" value="setribchq">';
|
print '<input type="hidden" name="action" value="setribchq">';
|
||||||
print $langs->trans("PaymentMode").'</td>';
|
print $langs->trans("PaymentMode").'</td>';
|
||||||
print '<td align="right">';
|
print '<td align="right">';
|
||||||
if (empty($conf->facture->enabled)) {
|
if (!isModEnabled('facture')) {
|
||||||
print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
|
print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -524,7 +524,7 @@ print "</tr>\n";
|
|||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print "<td>".$langs->trans("SuggestPaymentByRIBOnAccount")."</td>";
|
print "<td>".$langs->trans("SuggestPaymentByRIBOnAccount")."</td>";
|
||||||
print "<td>";
|
print "<td>";
|
||||||
if (empty($conf->facture->enabled)) {
|
if (!isModEnabled('facture')) {
|
||||||
if (isModEnabled("banque")) {
|
if (isModEnabled("banque")) {
|
||||||
$sql = "SELECT rowid, label";
|
$sql = "SELECT rowid, label";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account";
|
$sql .= " FROM ".MAIN_DB_PREFIX."bank_account";
|
||||||
@ -563,7 +563,7 @@ print "</td></tr>";
|
|||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print "<td>".$langs->trans("SuggestPaymentByChequeToAddress")."</td>";
|
print "<td>".$langs->trans("SuggestPaymentByChequeToAddress")."</td>";
|
||||||
print "<td>";
|
print "<td>";
|
||||||
if (empty($conf->facture->enabled)) {
|
if (!isModEnabled('facture')) {
|
||||||
print '<select class="flat" name="chq" id="chq">';
|
print '<select class="flat" name="chq" id="chq">';
|
||||||
print '<option value="0">'.$langs->trans("DoNotSuggestPaymentMode").'</option>';
|
print '<option value="0">'.$langs->trans("DoNotSuggestPaymentMode").'</option>';
|
||||||
print '<option value="-1"'.($conf->global->FACTURE_CHQ_NUMBER ? ' selected' : '').'>'.$langs->trans("MenuCompanySetup").' ('.($mysoc->name ? $mysoc->name : $langs->trans("NotDefined")).')</option>';
|
print '<option value="-1"'.($conf->global->FACTURE_CHQ_NUMBER ? ' selected' : '').'>'.$langs->trans("MenuCompanySetup").' ('.($mysoc->name ? $mysoc->name : $langs->trans("NotDefined")).')</option>';
|
||||||
@ -700,7 +700,7 @@ print "</td></tr>\n";
|
|||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
/* Seems to be not so used. So kept hidden for the moment to avoid dangerous options inflation.
|
/* Seems to be not so used. So kept hidden for the moment to avoid dangerous options inflation.
|
||||||
if ($conf->banque->enabled)
|
if (isModEnabled('facture'))
|
||||||
{
|
{
|
||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user