Merge pull request #15359 from andreubisquerra/master

Update receipt tab in TakePOS setup
This commit is contained in:
Laurent Destailleur 2020-11-12 12:45:18 +01:00 committed by GitHub
commit 0e9100fe75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 18 deletions

View File

@ -215,6 +215,8 @@ if ($nbofentries > 0)
print '</table></td>'; print '</table></td>';
print '</tr>'; print '</tr>';
} }
print "</table>";
print '<input type="submit" value="'.$langs->trans("Save").'"></form>';
//Printer3 //Printer3
print '<table class="liste nohover" width="100%">'; print '<table class="liste nohover" width="100%">';

View File

@ -65,6 +65,8 @@ if (GETPOST('action', 'alpha') == 'set')
} elseif (GETPOST('action', 'alpha') == 'setmethod') } elseif (GETPOST('action', 'alpha') == 'setmethod')
{ {
dolibarr_set_const($db, "TAKEPOS_PRINT_METHOD", GETPOST('value', 'alpha'), 'chaine', 0, '', $conf->entity); dolibarr_set_const($db, "TAKEPOS_PRINT_METHOD", GETPOST('value', 'alpha'), 'chaine', 0, '', $conf->entity);
// TakePOS connector require ReceiptPrinter module
if ($conf->global->TAKEPOS_PRINT_METHOD == "takeposconnector" && !$conf->receiptprinter->enabled) activateModule("modReceiptPrinter");
} }
@ -109,7 +111,6 @@ if ($conf->global->TAKEPOS_PRINT_METHOD == "browser")
print "</td></tr>\n"; print "</td></tr>\n";
// Receipt printer module // Receipt printer module
if ($conf->global->MAIN_FEATURES_LEVEL >= 1) {
print '<tr class="oddeven"><td>'; print '<tr class="oddeven"><td>';
print $langs->trans('DolibarrReceiptPrinter'); print $langs->trans('DolibarrReceiptPrinter');
print '<td>'; print '<td>';
@ -129,7 +130,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 1) {
print '</span>'; print '</span>';
} }
print "</td></tr>\n"; print "</td></tr>\n";
}
// TakePOS Connector // TakePOS Connector
print '<tr class="oddeven"><td>'; print '<tr class="oddeven"><td>';