// only one booking (post) } elseif ($request->GetVar('frm_bookid', 'post') !== $request->undefined) { $mwst_room = $request->GetVar('mwst_room', 'Session'); if ($request->GetVar('frm_bookids', 'post') !== $request->undefined) { $bookids = $request->GetVar('frm_bookids', 'post'); $bookid = $bookids[0]; $smarty->assign('tpl_bookids', $bookids); } else { $bookid = $request->GetVar('frm_bookid', 'post'); $bookids[0] = $bookid; } if ($request->GetVar('receiptid', 'post') !== $request->undefined) { $receiptid = $request->GetVar('frm_receiptid', 'post'); } $smarty->assign('tpl_bookid', $bookid); $receiptdata = $receipt->recalculate($bookid, $length_short_stay, $guestid); $smarty->assign('tpl_changed', $request->GetVar('frm_changed', 'post')); if ($request->GetVar('frm_action', 'post') == "add") { $id = $request->GetVar('frm_action_id', 'post') - 1; $articleid = $request->GetVar('frm_article', 'post'); $receiptdata = $receipt->additem($id, $bookid, $length_short_stay, $articleid, $guestid); } elseif ($request->GetVar('frm_action', 'post') == "del") { $id = $request->GetVar('frm_action_id', 'post') - 1; $receiptdata = $receipt->delitem($id, $bookid, $length_short_stay, $guestid); } // one booking (get) } else { $bookid = $request->GetVar('bookid', 'get'); if ($request->GetVar('receiptid', 'get') !== $request->undefined) { $receiptid = $request->GetVar('receiptid', 'get'); } else {