diff --git a/htdocs/core/modules/modTakePos.class.php b/htdocs/core/modules/modTakePos.class.php index 4671f40dd40..8357cb42b2d 100644 --- a/htdocs/core/modules/modTakePos.class.php +++ b/htdocs/core/modules/modTakePos.class.php @@ -217,7 +217,7 @@ class modTakePos extends DolibarrModules 'titre'=>'PointOfSaleShort', 'mainmenu'=>'takepos', 'leftmenu'=>'', - 'url'=>'/takepos/takepos.php', + 'url'=>'/takepos/index.php', 'langs'=>'cashdesk', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory. 'position'=>1000 + $r, 'enabled'=>'$conf->takepos->enabled', // Define condition to show or hide menu entry. Use '$conf->takepos->enabled' if entry must be visible if module is enabled. diff --git a/htdocs/langs/en_US/cashdesk.lang b/htdocs/langs/en_US/cashdesk.lang index 1d32b77e267..603f15d2779 100644 --- a/htdocs/langs/en_US/cashdesk.lang +++ b/htdocs/langs/en_US/cashdesk.lang @@ -58,8 +58,9 @@ TakeposNeedsCategories=TakePOS needs product categories to work OrderNotes=Order Notes CashDeskBankAccountFor=Default account to use for payments in NoPaimementModesDefined=No paiment mode defined in TakePOS configuration -TicketVatGrouped=Group VAT by rate in tickets -AutoPrintTickets=Automatically print tickets +TicketVatGrouped=Group VAT by rate in tickets|receipts +AutoPrintTickets=Automatically print tickets|receipts +PrintCustomerOnReceipts=Print customer on tickets|receipts EnableBarOrRestaurantFeatures=Enable features for Bar or Restaurant ConfirmDeletionOfThisPOSSale=Do your confirm the deletion of this current sale ? ConfirmDiscardOfThisPOSSale=Do you want to discard this current sale ? diff --git a/htdocs/takepos/admin/receipt.php b/htdocs/takepos/admin/receipt.php index 7a87e13ff97..7b412cfe610 100644 --- a/htdocs/takepos/admin/receipt.php +++ b/htdocs/takepos/admin/receipt.php @@ -207,7 +207,7 @@ if ($conf->global->TAKEPOS_PRINT_METHOD == "browser" || $conf->global->TAKEPOS_P // Customer information print ''; - print $langs->trans('ShowCustomer'); + print $langs->trans('PrintCustomerOnReceipts'); print ''; print $form->selectyesno("TAKEPOS_SHOW_CUSTOMER", $conf->global->TAKEPOS_SHOW_CUSTOMER, 1); print "\n"; diff --git a/htdocs/takepos/admin/setup.php b/htdocs/takepos/admin/setup.php index 20b62da4650..195e5bc306f 100644 --- a/htdocs/takepos/admin/setup.php +++ b/htdocs/takepos/admin/setup.php @@ -59,9 +59,11 @@ if ($resql) { $action = GETPOST('action', 'alpha'); + /* * Actions */ + $error = 0; if ($action == 'set') @@ -186,8 +188,7 @@ foreach ($dirmodels as $reldir) if ($module->isEnabled()) { - $var=!$var; - print ''.$module->nom."\n"; + print ''.$module->nom."\n"; print $module->info(); print ''; @@ -313,7 +314,7 @@ $htmltext .= ''; print ''; print $langs->trans("ColorTheme"); print ''; -$array = array(0=>"eldy", 1=>$langs->trans("Colorful")); +$array = array(0=>"Eldy", 1=>$langs->trans("Colorful")); print $form->selectarray('TAKEPOS_COLOR_THEME', $array, (empty($conf->global->TAKEPOS_COLOR_THEME) ? '0' : $conf->global->TAKEPOS_COLOR_THEME), 0); print "\n"; diff --git a/htdocs/takepos/floors.php b/htdocs/takepos/floors.php index 8624948e6ff..6a067a76268 100644 --- a/htdocs/takepos/floors.php +++ b/htdocs/takepos/floors.php @@ -132,7 +132,7 @@ function updatename(rowid) { } function LoadPlace(place){ - parent.location.href='takepos.php?place='+place; + parent.location.href='index.php?place='+place; } diff --git a/htdocs/takepos/takepos.php b/htdocs/takepos/index.php similarity index 99% rename from htdocs/takepos/takepos.php rename to htdocs/takepos/index.php index 2df16d7877f..9685e14ffd8 100644 --- a/htdocs/takepos/takepos.php +++ b/htdocs/takepos/index.php @@ -17,7 +17,7 @@ */ /** - * \file htdocs/takepos/takepos.php + * \file htdocs/takepos/index.php * \ingroup takepos * \brief Main TakePOS screen */ @@ -48,7 +48,7 @@ if ($setterminal > 0) $_SESSION["takeposterminal"] = $setterminal; } -$_SESSION["urlfrom"] = '/takepos/takepos.php'; +$_SESSION["urlfrom"] = '/takepos/index.php'; $langs->loadLangs(array("bills", "orders", "commercial", "cashdesk", "receiptprinter")); @@ -179,7 +179,7 @@ function ClearSearch() { // Set the focus on search field but only on desktop. On tablet or smartphone, we don't to avoid to have the keyboard open automatically function setFocusOnSearchField() { - console.log("Call setFocusOnSearchField in page takepos.php"); + console.log("Call setFocusOnSearchField in page index.php"); browser->layout == 'classic') { ?> console.log("has keyboard from localStorage, so we can force focus on search field"); $("#search").focus(); @@ -636,14 +636,14 @@ function TerminalsDialog() modal: true, buttons: { 'trans("Terminal")) ?> 1': function() { - location.href='takepos.php?setterminal=1'; + location.href='index.php?setterminal=1'; } global->TAKEPOS_NUM_TERMINALS; $i++) { print ", '".dol_escape_js($langs->trans("Terminal"))." ".$i."': function() { - location.href='takepos.php?setterminal=".$i."'; + location.href='index.php?setterminal=".$i."'; } "; } diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 880e3971763..3ca20a9ddee 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -53,7 +53,7 @@ if ($conf->global->TAKEPOS_PHONE_BASIC_LAYOUT == 1 && $conf->browser->layout == if ($conf->global->TAKEPOS_NUM_TERMINALS == "1") $_SESSION["takeposterminal"] = 1; else { - header("Location: takepos.php"); + header("Location: ".DOL_URL_ROOT."/takepos/index.php"); exit; } } @@ -746,7 +746,7 @@ $( document ).ready(function() { use_javascript_ajax)) { @@ -754,7 +754,7 @@ if (!empty($conf->use_javascript_ajax)) print ''."\n"; } - +print ''."\n"; print '
'; print ''; print '';