This commit is contained in:
Laurent Destailleur
2023-07-19 22:34:25 +02:00
parent 4ba8324a3f
commit fbcb6da4e7
3 changed files with 7 additions and 7 deletions

View File

@@ -163,22 +163,22 @@ if (isModEnabled('facture')) {
print ajax_constantonoff('INVOICE_ADD_ZATCA_QR_CODE');
} else {
$arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
print $form->selectarray("INVOICE_ADD_ZATCA_QR_CODE", $arrval, $conf->global->INVOICE_ADD_ZATCA_QR_CODE);
print $form->selectarray("INVOICE_ADD_ZATCA_QR_CODE", $arrval, getDolGlobalString('INVOICE_ADD_ZATCA_QR_CODE'));
}
print '</td></tr>';
print '<tr class="oddeven"><td>';
if (getDolGlobalString('INVOICE_ADD_ZATCA_QR_CODE') == 'bottom') {
if (getDolGlobalString('INVOICE_ADD_SWISS_QR_CODE') == 'bottom') {
print $form->textwithpicto($langs->trans("INVOICE_ADD_SWISS_QR_CODE"), $langs->trans("INVOICE_ADD_SWISS_QR_CODEMore"));
} else {
print $langs->trans("INVOICE_ADD_SWISS_QR_CODE");
}
print '</td><td>';
$arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
if (getDolGlobalString('MAIN_FEATURE_LEVEL') >= 1) {
$arrval['bottom'] = $langs->trans("AtBottomOfPage").' ('.$langs->trans("Experimental").' - Need PHP 8.1+)';
if (getDolGlobalString('MAIN_FEATURES_LEVEL') >= 1) {
$arrval['bottom'] = $langs->trans("AtBottomOfPage").' ('.$langs->trans("Experimental").' - Need PHP 8.1+ and some PHP libs)';
}
print $form->selectarray("INVOICE_ADD_SWISS_QR_CODE", $arrval, $conf->global->INVOICE_ADD_SWISS_QR_CODE);
print $form->selectarray("INVOICE_ADD_SWISS_QR_CODE", $arrval, getDolGlobalString('INVOICE_ADD_SWISS_QR_CODE'));
print '</td></tr>';
// Mention category of operations