本文整理汇总了PHP中Receipt::getitemslist方法的典型用法代码示例。如果您正苦于以下问题:PHP Receipt::getitemslist方法的具体用法?PHP Receipt::getitemslist怎么用?PHP Receipt::getitemslist使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Receipt
的用法示例。
在下文中一共展示了Receipt::getitemslist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
$smarty->assign('tpl_theotherstart', $theotherstart);
$smarty->assign('tpl_thestart', $thestart);
$smarty->assign('tpl_start1', $thestart1);
$smarty->assign('tpl_theotherstart1', $theotherstart1);
$smarty->assign('tpl_end1', $theend1);
$smarty->assign('tpl_theotherend1', $theotherend1);
$smarty->assign('tpl_mwst', $receipt->getMwst());
$mwst = -1;
if ($what == 'thedate') {
list($day, $month, $year) = split('[.]', $thedate);
$thestart = "{$year}-{$month}-{$day} 00:00:00";
$theend = "{$year}-{$month}-{$day} 23:59:59";
if ($request->GetVar('frm_mwst1', 'post') !== $request->undefined) {
$mwst = $request->GetVar('frm_mwst1', 'post');
}
$smarty->assign('tpl_receiptitems', $receipt->getitemslist($thestart, $theend, $mwst));
} elseif ($what == 'timeline') {
list($day, $month, $year) = split('[.]', $theend1);
$theend1 = "{$year}-{$month}-{$day} 23:59:59";
list($day, $month, $year) = split('[.]', $thestart1);
$thestart1 = "{$year}-{$month}-{$day} 00:00:00";
if ($request->GetVar('frm_mwst2', 'post') !== $request->undefined) {
$mwst = $request->GetVar('frm_mwst2', 'post');
}
$smarty->assign('tpl_receiptitems', $receipt->getitemslist($thestart1, $theend1, $mwst));
} else {
list($month, $year) = split('[/]', $theend);
$theend = "{$year}-{$month}-01 00:00:00";
list($month, $year) = split('[/]', $thestart);
$thestart = "{$year}-{$month}-01 00:00:00";
if ($request->GetVar('frm_mwst3', 'post') !== $request->undefined) {