Example #1
0
 include_once "kassaclass.inc.php";
 $kassacls = new Kassa();
 if ($request->GetVar('frm_checkout', 'post') == "true") {
     $payids = $request->getVar('payid', 'post');
     for ($i = 0; $i < count($payids); ++$i) {
         $kassacls->pay($payids[$i]);
     }
     $cat = "abrechnung";
     $selectedcats = $request->GetVar('frm_selectedcat', 'post');
     if ($request->GetVar('frm_setinactive', 'post') == "true") {
         $kassacls->checkout($theguestid, $request->GetVar('frm_setinactive', 'post'));
     }
 }
 if ($request->GetVar('frm_storno', 'post') == "true") {
     $selectedcats = $request->GetVar('frm_selectedcat', 'post');
     $kassacls->storno($request->GetVar('frm_boughtid', 'post'));
     $cat = "abrechnung";
 }
 if ($request->GetVar('frm_multiple_storno', 'post') == "true") {
     $selectedcats = $request->GetVar('frm_selectedcat', 'post');
     $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";
 }