|
@@ -60,6 +60,9 @@ if ($action == 'update') {
|
|
|
if (GETPOSTISSET('MAIN_DOCUMENTS_WITH_PICTURE_WIDTH')) {
|
|
|
dolibarr_set_const($db, "MAIN_DOCUMENTS_WITH_PICTURE_WIDTH", GETPOST("MAIN_DOCUMENTS_WITH_PICTURE_WIDTH", 'int'), 'chaine', 0, '', $conf->entity);
|
|
|
}
|
|
|
+ if (GETPOSTISSET('INVOICE_ADD_ZATCA_QR_CODE')) {
|
|
|
+ dolibarr_set_const($db, "INVOICE_ADD_ZATCA_QR_CODE", GETPOST("INVOICE_ADD_ZATCA_QR_CODE", 'int'), 'chaine', 0, '', $conf->entity);
|
|
|
+ }
|
|
|
|
|
|
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
|
|
|
|
@@ -90,19 +93,19 @@ $tooltiptext = '';
|
|
|
print '<span class="opacitymedium">'.$form->textwithpicto($langs->trans("PDFOtherDesc"), $tooltiptext)."</span><br>\n";
|
|
|
print "<br>\n";
|
|
|
|
|
|
+print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
|
+print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
|
+print '<input type="hidden" name="action" value="update">';
|
|
|
+
|
|
|
if (!empty($conf->propal->enabled)) {
|
|
|
print load_fiche_titre($langs->trans("Proposal"), '', '');
|
|
|
|
|
|
- print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
|
|
|
- print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
|
- print '<input type="hidden" name="action" value="update">';
|
|
|
-
|
|
|
print '<div class="div-table-responsive-no-min">';
|
|
|
print '<table summary="more" class="noborder centpercent">';
|
|
|
print '<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
|
|
|
|
- print '<tr class="oddeven"><td>'.$langs->trans("MAIN_GENERATE_PROPOSALS_WITH_PICTURE");
|
|
|
- print ' <span class="opacitymedium">('.$langs->trans("RandomlySelectedIfSeveral").')</span>';
|
|
|
+ print '<tr class="oddeven"><td>';
|
|
|
+ print $form->textwithpicto($langs->trans("MAIN_GENERATE_PROPOSALS_WITH_PICTURE"), $langs->trans("RandomlySelectedIfSeveral"));
|
|
|
print '</td><td>';
|
|
|
if ($conf->use_javascript_ajax) {
|
|
|
print ajax_constantonoff('MAIN_GENERATE_PROPOSALS_WITH_PICTURE');
|
|
@@ -112,6 +115,29 @@ if (!empty($conf->propal->enabled)) {
|
|
|
}
|
|
|
print '</td></tr>';
|
|
|
|
|
|
+ print '</table>';
|
|
|
+ print '</div>';
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+if (!empty($conf->facture->enabled)) {
|
|
|
+ print load_fiche_titre($langs->trans("Invoices"), '', '');
|
|
|
+
|
|
|
+ print '<div class="div-table-responsive-no-min">';
|
|
|
+ print '<table summary="more" class="noborder centpercent">';
|
|
|
+ print '<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans("Parameter").'</td><td width="200px">'.$langs->trans("Value").'</td></tr>';
|
|
|
+
|
|
|
+ print '<tr class="oddeven"><td>';
|
|
|
+ print $form->textwithpicto($langs->trans("INVOICE_ADD_ZATCA_QR_CODE"), $langs->trans("INVOICE_ADD_ZATCA_QR_CODEMore"));
|
|
|
+ print '</td><td>';
|
|
|
+ if ($conf->use_javascript_ajax) {
|
|
|
+ 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 '</td></tr>';
|
|
|
+
|
|
|
/*
|
|
|
print '<tr class="oddeven"><td>'.$langs->trans("MAIN_PDF_PROPAL_USE_ELECTRONIC_SIGNING").'</td><td>';
|
|
|
if ($conf->use_javascript_ajax) {
|