OrderSprinter 1.5.5
This commit is contained in:
parent
38e47d93c1
commit
7e5e012638
|
@ -9,8 +9,8 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" href="css/gueststyle.css?v=1.5.4" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/orderstyle.min.css?v=1.5.4" />
|
||||
<link rel="stylesheet" href="css/gueststyle.css?v=1.5.5" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/orderstyle.min.css?v=1.5.5" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
<link rel="stylesheet" href="php/3rdparty/jquery.mobile-1.4.0.min.css" type="text/css" />
|
||||
<script src="php/3rdparty/jquery-1.11.3.min.js"></script>
|
||||
|
@ -105,7 +105,7 @@
|
|||
<div data-role="footer" data-theme="b" id="thefooter1">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a"> OrderSprinter</div>
|
||||
<div class="ui-block-b grid_right" id="versioninfo">1.5.4 </div>
|
||||
<div class="ui-block-b grid_right" id="versioninfo">1.5.5 </div>
|
||||
</div><!-- /grid-a -->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -90,10 +90,10 @@ if (isset($_POST['code'])) {
|
|||
} else {
|
||||
echo "<html>";
|
||||
echo "<head><title>Installation Gastsystem</title>";
|
||||
echo '<link rel="stylesheet" type="text/css" href="css/gueststyle.css?v=1.5.4">';
|
||||
echo '<link rel="stylesheet" type="text/css" href="css/gueststyle.css?v=1.5.5">';
|
||||
echo "</head>";
|
||||
echo "<body><div class=surround>";
|
||||
echo "<span class=headerline>Installation OrderSprinter-Gastsystem 1.5.4</span><br><br>";
|
||||
echo "<span class=headerline>Installation OrderSprinter-Gastsystem 1.5.5</span><br><br>";
|
||||
echo "<form action='install.php' method='post'><input class=installfield name=code id=code type=text placeholder='Installationscode' />";
|
||||
echo "<br><input type=submit value='Installation starten' class=installbtn />";
|
||||
echo "</form></div></html>";
|
||||
|
|
Binary file not shown.
|
@ -85,7 +85,7 @@ class Installer {
|
|||
}
|
||||
Database::dropTables($pdo);
|
||||
Database::createEmptyTables($pdo, $prefix);
|
||||
Database::setVersion($pdo,$prefix,"1.5.4");
|
||||
Database::setVersion($pdo,$prefix,"1.5.5");
|
||||
Database::setAccessPassword($pdo,$prefix,$adminpass);
|
||||
Database::setRefreshRate($pdo,$prefix,"5"); // default: 5 times per hour
|
||||
return array("status" => "OK","msg" => "Installation successful");
|
||||
|
|
Binary file not shown.
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
@ -13,8 +13,8 @@
|
|||
<link rel="stylesheet" href="php/3rdparty/jquery.mobile-1.4.0.min.css" type="text/css" />
|
||||
<script src="php/3rdparty/jquery-2.0.3.min.js"></script>
|
||||
<script src="php/3rdparty/jquery.mobile-1.4.0.min.js"></script>
|
||||
<script src="utilities.js?v=1.5.4"></script>
|
||||
<script src="kitchenbar.js?v=1.5.4"></script>
|
||||
<script src="utilities.js?v=1.5.5"></script>
|
||||
<script src="kitchenbar.js?v=1.5.5"></script>
|
||||
<style>
|
||||
|
||||
#tableWithEntriesToCook,#tableWithCookedEntries,#headertableToCook
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/numfield.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" type="text/css" href="css/numfield.css?v=1.5.5">
|
||||
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/orderstyle.min.css" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
@ -229,7 +229,7 @@ function handleResultOfInstallCheck(is_installed) {
|
|||
if (is_installed == "Yes") {
|
||||
useInstallation();
|
||||
} else {
|
||||
setTimeout(function(){document.location.href = "install.html?v=1.5.4"},500);
|
||||
setTimeout(function(){document.location.href = "install.html?v=1.5.5"},500);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -727,7 +727,7 @@ $(document).ready(function() {
|
|||
<tr id=updateline>
|
||||
<td> </td>
|
||||
<td align=center>
|
||||
<button id="updatebtn">Update -> 1.5.4</button>
|
||||
<button id="updatebtn">Update -> 1.5.5</button>
|
||||
<span id="updateinprogresstxt" style="display:none;">Update... bitte warten.</span>
|
||||
</td>
|
||||
<td> </td>
|
||||
|
|
|
@ -414,7 +414,7 @@ $zones[] = $timezone_identifiers[$i];
|
|||
echo json_encode($zones);
|
||||
} else if ($command == 'update') {
|
||||
set_time_limit(60*30);
|
||||
$installerVersion = "1.5.4";
|
||||
$installerVersion = "1.5.5";
|
||||
|
||||
$admin = new InstallAdmin();
|
||||
$pdo = $admin->openDbAndReturnPdo($_POST['host'],$_POST['db'],$_POST['user'],$_POST['password']);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
@ -13,8 +13,8 @@
|
|||
<link rel="stylesheet" href="php/3rdparty/jquery.mobile-1.4.0.min.css" type="text/css" />
|
||||
<script src="php/3rdparty/jquery-2.0.3.min.js"></script>
|
||||
<script src="php/3rdparty/jquery.mobile-1.4.0.min.js"></script>
|
||||
<script src="utilities.js?v=1.5.4"></script>
|
||||
<script src="kitchenbar.js?v=1.5.4"></script>
|
||||
<script src="utilities.js?v=1.5.5"></script>
|
||||
<script src="kitchenbar.js?v=1.5.5"></script>
|
||||
<style>
|
||||
|
||||
#tableWithEntriesToCook,#tableWithCookedEntries,#headertableToCook
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
@ -13,10 +13,10 @@
|
|||
<link rel="stylesheet" href="php/3rdparty/jquery.mobile-1.4.0.min.css" type="text/css" />
|
||||
<script src="php/3rdparty/jquery-1.11.3.min.js"></script>
|
||||
<script src="php/3rdparty/jquery.mobile-1.4.5.min.js"></script>
|
||||
<script src="utilities.js?v=1.5.4"></script>
|
||||
<script src="elements/tablemap.js?v=1.5.4"></script>
|
||||
<script src="elements/roommap.js?v=1.5.4"></script>
|
||||
<script src="elements/groundplan.js?v=1.5.4"></script>
|
||||
<script src="utilities.js?v=1.5.5"></script>
|
||||
<script src="elements/tablemap.js?v=1.5.5"></script>
|
||||
<script src="elements/roommap.js?v=1.5.5"></script>
|
||||
<script src="elements/groundplan.js?v=1.5.5"></script>
|
||||
|
||||
<link href="php/3rdparty/hayageek_uploadfile.css" rel="stylesheet">
|
||||
<script src="php/3rdparty/hayageek_jquery_uploadfile.js"></script>
|
||||
|
@ -361,6 +361,7 @@ var MAN_TASK_ALLASSIGN = ["Aufgabenzuweisung an andere Benutzer","Task assignmen
|
|||
var MAN_TASK_OWNEREMPTY = ["Benutzer für Auffüllen-Aufgabe","User for refill task","Usario de tarea de sustituir productos"];
|
||||
var MAN_TASK_IF_EMPTY = ["Aufgabe bei leerem Warenbestand erstellen","Create task before empty inventory","Crear tarea si no ya hay productos"];
|
||||
var MAN_SHOWTOGO = ["Zeige Außer-Haus-Button","Show To go button","Mostrar boton To-Go"];
|
||||
var MAN_TOGO = ["Außer-Haus","To go","To-Go"];
|
||||
var MAN_SHOWPREPINWAITER = ["Zeige Anzahl vorbereiteter Produkte in mobiler Tischansicht an","Show number of prepared products in mobile table view","Mostrar numero de los productos preparados en vista movil de las mesas"];
|
||||
var MAN_CLOSSHOWCI = ["Betriebsinfo auf Tagesabschlussbon","Print company info on closing receipt","Imprimir info del café en el cerramiento"];
|
||||
var MAN_CLOSSHOWPAYTAXES = ["Individuelle Steuerbeträge pro Zahlungsweg auf Tagesabschluss","Print each tax per payment way on closing","Imprimir cada impuesto por cada camino de pagar en el cerramiento"];
|
||||
|
@ -437,6 +438,7 @@ var generalVals = [12,2,0,3,0,1,1,0,0,1, 0,50,20,10,1,0,0,0,1,0,1,0,0,1,1, 1,
|
|||
var numberOfClosings = 0;
|
||||
|
||||
var unpaidTables = "";
|
||||
var takeawayhasopenbills = 0;
|
||||
var version = '';
|
||||
var newerversionavailable = 0;
|
||||
var adminIsLoggedIn = false;
|
||||
|
@ -1362,7 +1364,7 @@ function initRestoreFileUpload() {
|
|||
} else {
|
||||
alert("Import war erfolgreich.");
|
||||
setTimeout(function(){
|
||||
document.location.href = "index.html?v=1.5.4";
|
||||
document.location.href = "index.html?v=1.5.5";
|
||||
},250);
|
||||
}
|
||||
},
|
||||
|
@ -1393,6 +1395,7 @@ function requestUnpaidTables() {
|
|||
function insertUnpaidTables(answer) {
|
||||
if (answer.status == "OK") {
|
||||
unpaidTables = answer.msg;
|
||||
takeawayhasopenbills = answer.takeawayhasopenbills;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1411,14 +1414,20 @@ function isNumeric(n) {
|
|||
}
|
||||
|
||||
function startCreateClosing(remark,doPrint) {
|
||||
if (unpaidTables.length == "") {
|
||||
if ((unpaidTables.length == "") && (takeawayhasopenbills == 0)) {
|
||||
hideClosingBtn();
|
||||
showProgressPopup();
|
||||
doAjax("POST","php/contenthandler.php?module=closing&command=createClosing",{ remark: remark, print: (doPrint ? 1 : 0) },createClosing,"Tagesabschluss");
|
||||
} else {
|
||||
|
||||
|
||||
areYouSure("Tageserfassung", MAN_UNPAID1[lang] + unpaidTables + ". " + MAN_UNPAID2[lang], MAN_YES[lang], function() {
|
||||
var txt = MAN_UNPAID1[lang] + unpaidTables;
|
||||
if (takeawayhasopenbills == 1) {
|
||||
if (unpaidTables != "") {
|
||||
txt += ",";
|
||||
}
|
||||
txt += MAN_TOGO[lang];
|
||||
}
|
||||
areYouSure("Tageserfassung", txt + ". " + MAN_UNPAID2[lang], MAN_YES[lang], function() {
|
||||
hideClosingBtn();
|
||||
showProgressPopup();
|
||||
doAjax("POST","php/contenthandler.php?module=closing&command=createClosing",{ remark: remark, print: (doPrint ? 1 : 0) },createClosing,"Tagesabschluss");
|
||||
|
@ -1902,9 +1911,9 @@ function handleUpdateCheckResult(answer) {
|
|||
|
||||
var millis=getMillis();
|
||||
setTimeout(function(){
|
||||
document.location.href = "install.html?v=1.5.4&mode=onlyupdate&n=" + millis;
|
||||
document.location.href = "install.html?v=1.5.5&mode=onlyupdate&n=" + millis;
|
||||
},250);
|
||||
document.location.href = "install.html?v=1.5.4&mode=onlyupdate&n=" + millis;
|
||||
document.location.href = "install.html?v=1.5.5&mode=onlyupdate&n=" + millis;
|
||||
}
|
||||
|
||||
function handleUpdateReplace(answer) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
||||
|
|
|
@ -1357,7 +1357,7 @@ class Admin {
|
|||
$view = "preferences.html";
|
||||
}
|
||||
|
||||
echo json_encode($view . "?v=1.5.4");
|
||||
echo json_encode($view . "?v=1.5.5");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1572,30 +1572,30 @@ class Admin {
|
|||
|
||||
if (!self::isOnlyRatingUser($rights, $right_rating, true)) {
|
||||
if ($_SESSION['modus'] == 0) {
|
||||
if ($_SESSION['right_waiter']) { $mainMenu[] = array("name" => $waitertxt[$lang], "link" => "waiter.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_waiter']) { $mainMenu[] = array("name" => $waitertxt[$lang], "link" => "waiter.html?v=1.5.5"); }
|
||||
} else {
|
||||
if ($_SESSION['right_waiter']) { $mainMenu[] = array("name" => $waiterdesktxt[$lang], "link" => "waiterdesktop.php?v=1.5.4"); }
|
||||
if ($_SESSION['right_waiter']) { $mainMenu[] = array("name" => $waiterdesktxt[$lang], "link" => "waiterdesktop.php?v=1.5.5"); }
|
||||
}
|
||||
if ($_SESSION['right_kitchen']) { $mainMenu[] = array("name" => $kitchentxt[$lang], "link" => "kitchen.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_bar']) { $mainMenu[] = array("name" => "Bar", "link" => "bar.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_supply']) { $mainMenu[] = array("name" => $supplytxt[$lang], "link" => "supplydesk.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_kitchen']) { $mainMenu[] = array("name" => $kitchentxt[$lang], "link" => "kitchen.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_bar']) { $mainMenu[] = array("name" => "Bar", "link" => "bar.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_supply']) { $mainMenu[] = array("name" => $supplytxt[$lang], "link" => "supplydesk.html?v=1.5.5"); }
|
||||
if ($_SESSION['modus'] == 0) {
|
||||
if ($_SESSION['right_paydesk']) { $mainMenu[] = array("name" => $paydesktxt[$lang], "link" => "paydesk.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_paydesk']) { $mainMenu[] = array("name" => $paydesktxt[$lang], "link" => "paydesk.html?v=1.5.5"); }
|
||||
}
|
||||
if ($_SESSION['right_statistics']) { $mainMenu[] = array("name" => $stattxt[$lang], "link" => "reports.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_bill']) { $mainMenu[] = array("name" => $bontxt[$lang], "link" => "bill.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_products']) { $mainMenu[] = array("name" => $prodtxt[$lang], "link" => "products.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_reservation']) { $mainMenu[] = array("name" => $restxt[$lang], "link" => "reservation.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_tasks'] || $_SESSION['right_tasksmanagement']) { $mainMenu[] = array("name" => $taskstxt[$lang], "link" => "tasks.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_rating']) { $mainMenu[] = array("name" => $ratingtxt[$lang], "link" => "rating.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_customers']) { $mainMenu[] = array("name" => $customerstxt[$lang], "link" => "customers.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_dash']) { $mainMenu[] = array("name" => $dashtxt[$lang], "link" => "dash.php?v=1.5.4"); }
|
||||
if ($_SESSION['right_manager'] || $_SESSION['is_admin'] || $_SESSION['right_closing']) { $mainMenu[] = array("name" => $admintxt[$lang], "link" => "manager.html?v=1.5.4"); }
|
||||
$mainMenu[] = array("name" => $settingtxt[$lang], "link" => "preferences.html?v=1.5.4");
|
||||
if ($_SESSION['right_timetracking'] || $_SESSION['right_timemanager']) { $mainMenu[] = array("name" => $timetrackingtxt[$lang], "link" => "timetracking.html?v=1.5.4"); }
|
||||
if ($_SESSION['right_statistics']) { $mainMenu[] = array("name" => $stattxt[$lang], "link" => "reports.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_bill']) { $mainMenu[] = array("name" => $bontxt[$lang], "link" => "bill.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_products']) { $mainMenu[] = array("name" => $prodtxt[$lang], "link" => "products.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_reservation']) { $mainMenu[] = array("name" => $restxt[$lang], "link" => "reservation.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_tasks'] || $_SESSION['right_tasksmanagement']) { $mainMenu[] = array("name" => $taskstxt[$lang], "link" => "tasks.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_rating']) { $mainMenu[] = array("name" => $ratingtxt[$lang], "link" => "rating.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_customers']) { $mainMenu[] = array("name" => $customerstxt[$lang], "link" => "customers.html?v=1.5.5"); }
|
||||
if ($_SESSION['right_dash']) { $mainMenu[] = array("name" => $dashtxt[$lang], "link" => "dash.php?v=1.5.5"); }
|
||||
if ($_SESSION['right_manager'] || $_SESSION['is_admin'] || $_SESSION['right_closing']) { $mainMenu[] = array("name" => $admintxt[$lang], "link" => "manager.html?v=1.5.5"); }
|
||||
$mainMenu[] = array("name" => $settingtxt[$lang], "link" => "preferences.html?v=1.5.5");
|
||||
if ($_SESSION['right_timetracking'] || $_SESSION['right_timemanager']) { $mainMenu[] = array("name" => $timetrackingtxt[$lang], "link" => "timetracking.html?v=1.5.5"); }
|
||||
|
||||
$mainMenu[] = array("name" => "Hilfe", "link" => "help.php?v=1.5.4");
|
||||
$mainMenu[] = array("name" => "Feedback", "link" => "feedback.html?v=1.5.4");
|
||||
$mainMenu[] = array("name" => "Hilfe", "link" => "help.php?v=1.5.5");
|
||||
$mainMenu[] = array("name" => "Feedback", "link" => "feedback.html?v=1.5.5");
|
||||
}
|
||||
|
||||
$mainMenu[] = array("name" => $logout[$lang], "link" => "logout.php");
|
||||
|
|
|
@ -694,6 +694,7 @@ class Customers {
|
|||
$sql .= " %customerlog%.billid as billid,%customerlog%.remark as remark, userid, username, customerid, %user%.username as username, %customers%.name as customername ";
|
||||
$sql .= " FROM %customerlog%,%user%,%customers% ";
|
||||
$sql .= " WHERE (userid=%user%.id AND customerid=%customers%.id) ";
|
||||
$sql .= " ORDER BY %customerlog%.date";
|
||||
|
||||
$where = '';
|
||||
|
||||
|
@ -852,7 +853,7 @@ class Customers {
|
|||
$txt = "<head>";
|
||||
$txt .= "<title>" . self::$CUS_OVERVIEW[$lang] . "</title>";
|
||||
$txt .= '<meta http-equiv="content-type" content="text/html; charset=utf-8">';
|
||||
$txt .= '<link rel="stylesheet" type="text/css" href="../css/guestreport.css?v=1.5.4">';
|
||||
$txt .= '<link rel="stylesheet" type="text/css" href="../css/guestreport.css?v=1.5.5">';
|
||||
$txt .= "</head>";
|
||||
return $txt;
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ if (isset($_POST["cmd"])) {
|
|||
if (strlen($status) > 150) {
|
||||
$status = substr($status, 0,149);
|
||||
}
|
||||
$version = "1.5.4";
|
||||
$version = "1.5.5";
|
||||
|
||||
$arr = array("cmd" => $cmd,"fct" => $fct, "xhr" => $xhr,"errormsg" => $errormsg,"status" => $status,"version" => $version,"phpversion" => $phpversion);
|
||||
} else {
|
||||
|
|
|
@ -37,44 +37,48 @@ class PrintQueue {
|
|||
$this->instance = $_GET['instance'];
|
||||
}
|
||||
|
||||
$pass = '';
|
||||
if (isset($_POST['pass'])) {
|
||||
$pass = $_POST['pass'];
|
||||
}
|
||||
// these command are only allowed for user with waiter rights
|
||||
if ($command == 'getNextReceiptPrintJobs') {
|
||||
if(isset($_GET['printers'])) {
|
||||
$this->getNextReceiptPrintJobs($_POST['pass'],$_GET['language'],$_GET['printers'],$fl);
|
||||
$this->getNextReceiptPrintJobs($pass,$_GET['language'],$_GET['printers'],$fl);
|
||||
} else {
|
||||
$this->getNextReceiptPrintJobs($_POST['pass'],$_GET['language'],"1,2,3,4,5,6",$fl);
|
||||
$this->getNextReceiptPrintJobs($pass,$_GET['language'],"1,2,3,4,5,6",$fl);
|
||||
}
|
||||
} else if ($command == 'getNextClosingPrintJobs') {
|
||||
$this->getNextClosingPrintJobs($_POST['pass'],$_GET['language'],$fl);
|
||||
$this->getNextClosingPrintJobs($pass,$_GET['language'],$fl);
|
||||
} else if ($command == 'getNextFoodWorkPrintJobs') {
|
||||
if (isset($_GET['printer'])) {
|
||||
$this->getNextFoodWorkPrintJobs($_GET['printer'],$_POST['pass'],$fl);
|
||||
$this->getNextFoodWorkPrintJobs($_GET['printer'],$pass,$fl);
|
||||
} else {
|
||||
$this->getNextFoodWorkPrintJobs(null,$_POST['pass'],$fl);
|
||||
$this->getNextFoodWorkPrintJobs(null,$pass,$fl);
|
||||
}
|
||||
} else if ($command == 'getNextDrinkWorkPrintJobs') {
|
||||
if (isset($_GET['printer'])) {
|
||||
$this->getNextDrinkWorkPrintJobs($_GET['printer'],$_POST['pass'],$fl);
|
||||
$this->getNextDrinkWorkPrintJobs($_GET['printer'],$pass,$fl);
|
||||
} else {
|
||||
$this->getNextDrinkWorkPrintJobs(null,$_POST['pass'],$fl);
|
||||
$this->getNextDrinkWorkPrintJobs(null,$pass,$fl);
|
||||
}
|
||||
|
||||
} else if ($command == 'getNextCancelFoodWorkPrintJobs') {
|
||||
if (isset($_GET['printer'])) {
|
||||
$this->getNextCancelFoodWorkPrintJobs($_GET['printer'],$_POST['pass'],$fl);
|
||||
$this->getNextCancelFoodWorkPrintJobs($_GET['printer'],$pass,$fl);
|
||||
} else {
|
||||
$this->getNextCancelFoodWorkPrintJobs(null,$_POST['pass'],$fl);
|
||||
$this->getNextCancelFoodWorkPrintJobs(null,$pass,$fl);
|
||||
}
|
||||
} else if ($command == 'getNextCancelDrinkWorkPrintJobs') {
|
||||
if (isset($_GET['printer'])) {
|
||||
$this->getNextCancelDrinkWorkPrintJobs($_GET['printer'],$_POST['pass'],$fl);
|
||||
$this->getNextCancelDrinkWorkPrintJobs($_GET['printer'],$pass,$fl);
|
||||
} else {
|
||||
$this->getNextCancelDrinkWorkPrintJobs(null,$_POST['pass'],$fl);
|
||||
$this->getNextCancelDrinkWorkPrintJobs(null,$pass,$fl);
|
||||
}
|
||||
|
||||
|
||||
} else if ($command == 'deletePrintJob') {
|
||||
$this->deletePrintJob($_POST['pass'],$_POST['id']);
|
||||
$this->deletePrintJob($pass,$_POST['id']);
|
||||
} else if ($command == 'queueReceiptPrintJob') {
|
||||
if (isset($_POST['useaddrecprinter'])) {
|
||||
$this->queueReceiptPrintJob($_POST['billid'],$_POST['useaddrecprinter']);
|
||||
|
@ -84,7 +88,7 @@ class PrintQueue {
|
|||
} else if ($command == 'queueClosingSummary') {
|
||||
$this->queueClosingSummary($_GET['closingid']);
|
||||
} else if ($command == 'testConnection') {
|
||||
$this->testConnection($_POST['pass']);
|
||||
$this->testConnection($pass);
|
||||
} else if ($command == 'getReceiptConfig') {
|
||||
$this->getReceiptConfig();
|
||||
} else if ($command == 'getLogoAsPng') {
|
||||
|
@ -100,7 +104,7 @@ class PrintQueue {
|
|||
} else if ($command == 'batchReceiptPrintJob') {
|
||||
$this->batchReceiptPrintJob($_POST['start'],$_POST['end']);
|
||||
} else if ($command == 'getLastLog') {
|
||||
$this->getLastLog($_POST['pass']);
|
||||
$this->getLastLog($pass);
|
||||
} else if ($command == 'deleteSpooledPrintJob') {
|
||||
$this->deleteSpooledPrintJob($_POST['id']);
|
||||
} else if ($command == 'reprintworkreceipt') {
|
||||
|
@ -200,8 +204,10 @@ class PrintQueue {
|
|||
|
||||
$jobs = array();
|
||||
for ($printer=1;$printer<7;$printer++) {
|
||||
$sql = "SELECT %printjobs%.id as id,%bill%.id as billid,billdate,brutto,%resttables%.tableno as tablename,type FROM %printjobs%,%bill%,%resttables% WHERE printer=? AND type = '3' AND content=%bill%.id AND %bill%.tableid=%resttables%.id";
|
||||
$resultBills = CommonUtils::fetchSqlAll($pdo, $sql, array($printer));
|
||||
$sql = "SELECT J.id as id,B.id as billid,billdate,brutto,R.tableno as tablename,type FROM %printjobs% J,%bill% B,%resttables% R WHERE printer=? AND type = '3' AND content=B.id AND B.tableid=R.id";
|
||||
$sql .= " UNION ";
|
||||
$sql .= "SELECT J.id as id,B.id as billid,billdate,brutto,'To-Go' as tablename,type FROM %printjobs% J,%bill% B WHERE printer=? AND type = '3' AND content=B.id AND B.tableid='0'";
|
||||
$resultBills = CommonUtils::fetchSqlAll($pdo, $sql, array($printer,$printer));
|
||||
$sql = "SELECT %printjobs%.id as id,%closing%.id as closingid,type,closingdate FROM %printjobs%,%closing% WHERE printer=? AND type = '4' AND content=%closing%.id";
|
||||
$resultClosings = CommonUtils::fetchSqlAll($pdo, $sql, array($printer));
|
||||
|
||||
|
|
|
@ -1290,14 +1290,20 @@ class QueueContent {
|
|||
function getUnpaidTables() {
|
||||
$pdo = DbUtils::openDbAndReturnPdoStatic();
|
||||
$sql = "SELECT DISTINCT %resttables%.tableno as tablename FROM %queue%,%resttables% WHERE paidtime is null AND ordertime is not null and tablenr=%resttables%.id AND isclosed is null";
|
||||
$stmt = $pdo->prepare(DbUtils::substTableAlias($sql));
|
||||
$stmt->execute();
|
||||
$result = $stmt->fetchAll();
|
||||
$result = CommonUtils::fetchSqlAll($pdo, $sql, null);
|
||||
$unpaidTables = array();
|
||||
foreach ($result as $anUnpaidTable) {
|
||||
$unpaidTables[] = $anUnpaidTable["tablename"];
|
||||
}
|
||||
echo json_encode(array("status" => "OK","msg" => join(",",$unpaidTables)));
|
||||
$sql = "SELECT COUNT(id) as takeawayitems FROM %queue% WHERE tablenr is null AND paidtime is null AND ordertime is not null AND isclosed is null";
|
||||
$result = CommonUtils::fetchSqlAll($pdo, $sql, null);
|
||||
$cnt = $result[0]["takeawayitems"];
|
||||
$takeawayHasOpenBills = 0;
|
||||
if ($cnt != 0) {
|
||||
$takeawayHasOpenBills = 1;
|
||||
}
|
||||
|
||||
echo json_encode(array("status" => "OK","msg" => join(",",$unpaidTables),"takeawayhasopenbills" => $takeawayHasOpenBills));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -55,7 +55,7 @@ class Roomtables {
|
|||
}
|
||||
|
||||
function showAllRooms() {
|
||||
$pdo = $this->dbutils->openDbAndReturnPdo();
|
||||
$pdo = DbUtils::openDbAndReturnPdoStatic();
|
||||
$roomtables = $this->getAllTablesAndRooms($pdo);
|
||||
echo json_encode($roomtables);
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ class Roomtables {
|
|||
|
||||
private function getUnpaidSumOfTakeAway($pdo) {
|
||||
$sql = "SELECT IFNULL(SUM(IF(%queue%.ordertime is not null AND %queue%.paidtime is null,%queue%.price,0.00)),0.00) as pricesum FROM %queue% ";
|
||||
$sql .= " WHERE %queue%.tablenr is null";
|
||||
$sql .= " WHERE %queue%.tablenr is null AND isclosed is null";
|
||||
$stmt = $pdo->prepare(DbUtils::substTableAlias($sql));
|
||||
$stmt->execute();
|
||||
$row = $stmt->fetchObject();
|
||||
|
|
|
@ -954,6 +954,14 @@ class Version {
|
|||
}
|
||||
}
|
||||
|
||||
public static function upd_1504_1505($pdo, $prefix, $dbname) {
|
||||
try {
|
||||
return array(true);
|
||||
} catch (PDOException $e) {
|
||||
return array(false,$e);
|
||||
}
|
||||
}
|
||||
|
||||
public static $updateOrder = array(
|
||||
"1.3.0" => array("upd_1300_1301","1.3.1"),
|
||||
"1.3.1" => array("upd_1301_1302","1.3.2"),
|
||||
|
@ -1005,7 +1013,8 @@ class Version {
|
|||
"1.5.0" => array("upd_1500_1501","1.5.1"),
|
||||
"1.5.1" => array("upd_1501_1502","1.5.2"),
|
||||
"1.5.2" => array("upd_1502_1503","1.5.3"),
|
||||
"1.5.3" => array("upd_1503_1504","1.5.4")
|
||||
"1.5.3" => array("upd_1503_1504","1.5.4"),
|
||||
"1.5.4" => array("upd_1504_1505","1.5.5")
|
||||
);
|
||||
|
||||
// RE;* also for install process no check is required
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
<script src="php/3rdparty/jquery-1.11.3.min.js"></script>
|
||||
<script src="php/3rdparty/jquery.mobile-1.4.5.min.js"></script>
|
||||
|
||||
<script src="utilities.js?v=1.5.4"></script>
|
||||
<script src="utilities.js?v=1.5.5"></script>
|
||||
|
||||
<link rel="stylesheet" href="php/3rdparty/jqueryui1-11-4/jquery-ui.min.css" />
|
||||
<script src="php/3rdparty/jqueryui1-11-4/jquery-ui.min.js"></script>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<meta name="author" content="Stefan Pichel">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/numfield.css?v=1.5.4">
|
||||
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.5">
|
||||
<link rel="stylesheet" type="text/css" href="css/numfield.css?v=1.5.5">
|
||||
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
||||
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
||||
|
||||
|
|
Loading…
Reference in New Issue