本文整理汇总了PHP中Receipt::recalculate方法的典型用法代码示例。如果您正苦于以下问题:PHP Receipt::recalculate方法的具体用法?PHP Receipt::recalculate怎么用?PHP Receipt::recalculate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Receipt
的用法示例。
在下文中一共展示了Receipt::recalculate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
// 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 {