$payids = $request->getVar('payid', 'post'); for ($i = 0; $i < count($payids); ++$i) { $kassacls->storno($payids[$i]); } $cat = "abrechnung"; } if ($request->GetVar('frm_pay', 'post') == "true") { $selectedcats = $request->GetVar('frm_selectedcat', 'post'); $kassacls->pay($request->GetVar('frm_boughtid', 'post')); $cat = "abrechnung"; } if ($request->GetVar('frm_changecat', 'post') == "true") { $selectedcats = $request->GetVar('frm_selectedcat', 'post'); $cat = "abrechnung"; } $guestarticles = $kassacls->get($theguestid, 'DESC', $selectedcats); $smarty->assign('tpl_guestarticles', $guestarticles); } $smarty->assign('tpl_import', $usezvs); $smarty->assign('tpl_cat', $cats); $smarty->assign('tpl_thecat', $cat); $smarty->assign('tpl_selectedcat', $selectedcats); for ($i = 0; $i < count($barguestcat); $i++) { $barguestcat[$i]['guests'] = $barguest->getallbycat($barguestcat[$i]['barguestcatid']); } $smarty->assign('tpl_barguestcat', $barguestcat); /* $barguests = $barguest->getAll(); $smarty->assign('tpl_barguests', $barguests); */
$nocachecontrol = true; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once "../includes/fileselector.inc.php"; include_once "kassaclass.inc.php"; $kassacls = new Kassa(); include_once "barguestclass.inc.php"; $barguest = new Barguest(); if ($request->GetVar('cats', 'get') !== $request->undefined) { $cats = explode(",", $request->GetVar('cats', 'get')); } else { $cats = array(); } if ($request->GetVar('guestid', 'get') !== $request->undefined) { $theguestid = $request->GetVar('guestid', 'get'); $guestarticles = $kassacls->get($theguestid, 'ASC', $cats); $table = '\\trowd\\trgaph10\\trleft-10\\trrh301\\trpaddl10\\trpaddr10\\trpaddfl3\\trpaddfr3\\clbrdrb\\brdrw10\\brdrs \\cellx983\\clbrdrb\\brdrw10\\brdrs \\cellx4243\\clbrdrb\\brdrw10\\brdrs \\cellx6794\\clbrdrb\\brdrw10\\brdrs \\cellx8212\\clbrdrb\\brdrw10\\brdrs \\cellx9526\\pard\\intbl\\ql\\b Anzahl\\b0\\cell\\b Artikel\\b0\\cell\\b Datum\\b0\\cell\\b\\qr0 Preis\\b0\\cell\\b Total\\b0\\cell\\row'; for ($i = 0; $i < count($guestarticles); $i++) { if ($i == count($guestarticles) - 1) { $table .= '\\trowd\\trgaph10\\trleft-10\\trrh301\\trpaddl10\\trpaddr10\\trpaddfl3\\trpaddfr3\\clbrdrt\\brdrw10\\brdrs \\cellx983\\clbrdrt\\brdrw10\\brdrs \\cellx4243\\clbrdrt\\brdrw10\\brdrs \\cellx6794\\clbrdrt\\brdrw10\\brdrs \\cellx8212\\clbrdrt\\brdrw10\\brdrs \\cellx9526\\pard\\intbl\\cell\\cell\\cell\\pard\\intbl\\qr\\b Summe:\\cell ' . $guestarticles[$i]['total'] . ' \\\'80 \\cell\\b0\\row\\pard\\par'; } else { $table .= '\\trowd\\trgaph10\\trleft-10\\trrh301\\trpaddl10\\trpaddr10\\trpaddfl3\\trpaddfr3\\clbrdrt\\brdrw10\\brdrs \\cellx983\\clbrdrt\\brdrw10\\brdrs \\cellx4243\\clbrdrt\\brdrw10\\brdrs \\cellx6794\\clbrdrt\\brdrw10\\brdrs \\cellx8212\\clbrdrt\\brdrw10\\brdrs \\cellx9526\\pard\\intbl ' . $guestarticles[$i]['num'] . '\\cell ' . $guestarticles[$i]['description'] . '\\cell ' . $guestarticles[$i]['timestamp'] . ' Uhr\\cell\\pard\\intbl\\qr ' . $guestarticles[$i]['price'] . ' \\\'80\\cell ' . $guestarticles[$i]['total'] . ' \\\'80\\cell\\row'; } } } else { $theguestid = $request->GetVar('frm_theguestid', 'get'); $start = $request->GetVar('frm_start', 'get'); $end = $request->GetVar('frm_end', 'get'); $guestarticles = $kassacls->getTimeline($theguestid, $start, $end, 'ASC', $cats); $table = '\\trowd\\trgaph10\\trleft-10\\trrh301\\trpaddl10\\trpaddr10\\trpaddfl3\\trpaddfr3\\clbrdrb\\brdrw10\\brdrs \\cellx830\\clbrdrb\\brdrw10\\brdrs \\cellx3420\\clbrdrb\\brdrw10\\brdrs \\cellx4662\\clbrdrb\\brdrw10\\brdrs \\cellx5904\\clbrdrb\\brdrw10\\brdrs \\cellx7145\\clbrdrb\\brdrw10\\brdrs \\cellx8387\\clbrbrb\\brdrw10\\brdrs \\cellx9629\\pard\\intbl\\nowidctlpar\\b Anzahl\\b0\\cell\\b Artikel\\b0\\cell\\b Datum\\b0\\cell\\b\\qr Preis\\b0\\cell\\b Total\\b0\\cell\\b Bezahlt\\cell Datum\\cell\\row'; for ($i = 0; $i < count($guestarticles); $i++) {
* Show bar interface * * bar interface * * 07/24/2003 by Christian Ehret chris@uffbasse.de */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once "barguestclass.inc.php"; $barguest = new Barguest(); $theguestid = -1; $theguest = ""; if ($request->GetVar('guestid', 'get') !== $request->undefined) { $theguestid = $request->GetVar('guestid', 'get'); $theguest = $barguest->getName($theguestid); include_once "kassaclass.inc.php"; $kassacls = new Kassa(); if ($request->GetVar('frm_checkout', 'post') == "true") { $kassacls->checkout($theguestid, $request->GetVar('frm_setinactive', 'post')); } $articles = $kassacls->get($theguestid); $smarty->assign('tpl_articles', $articles); } $barguests = $barguest->getAll(); $smarty->assign('tpl_barguests', $barguests); $smarty->assign('tpl_theguestid', $theguestid); $smarty->assign('tpl_theguest', $theguest); $smarty->assign("tpl_title", "ZVS Barinterface"); $smarty->assign("tpl_nav", "kassa"); $smarty->display('kassa.tpl');