本文整理汇总了PHP中Accounts::getAccountsPeriodBalance方法的典型用法代码示例。如果您正苦于以下问题:PHP Accounts::getAccountsPeriodBalance方法的具体用法?PHP Accounts::getAccountsPeriodBalance怎么用?PHP Accounts::getAccountsPeriodBalance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Accounts
的用法示例。
在下文中一共展示了Accounts::getAccountsPeriodBalance方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$summaryamt = number_format($totalotherincome, 2);
$pdf->Cell($w[1], $defaultfontheight, $summaryamt, 0, 0, "R");
break;
}
$currentcategory = $classtype;
$pdf->Ln(10);
}
if ($showaccountcode == 1) {
$accounts_name = $accountcode_full . '-' . $accounts_name;
}
if ($placeholder == 0) {
$displayamt = number_format(abs($transactionamt), 2);
} elseif ($placeholder == 1 && $treelevel < $reportlevel) {
$displayamt = "";
} else {
$displayamt = $acc->getAccountsPeriodBalance($periodfrom_id, $accounts_id, 0);
}
if ($treelevel == 1) {
$prefix = "";
} elseif ($treelevel == 2) {
$prefix = " ";
} elseif ($treelevel == 3) {
$prefix = " ";
}
if ($showplacefolderindicator == 1 && $placeholder == 1) {
$displaytext = $prefix . "[" . $accounts_name . "]";
} else {
$displaytext = $prefix . $accounts_name;
}
$data = array($prefix . $displaytext, $displayamt);
$pdf->SetX($marginx);
示例2: elseif
$accounts_id = $row['accounts_id'];
$classtype = $row['classtype'];
$treelevel = $row['treelevel'];
$transactionamt1 = $row['transactionamt1'];
$transactionamt2 = $row['transactionamt2'];
if ($showaccountcode == "on") {
$accounts_name = $accountcode_full . '-' . $accounts_name;
}
if ($placeholder == 0) {
$displayamt1 = number_format(abs($transactionamt1), 2);
$displayamt2 = number_format(abs($transactionamt2), 2);
} elseif ($placeholder == 1 && $treelevel < $reportlevel) {
$displayamt1 = "";
$displayamt2 = "";
} else {
$transactionamt1 = $acc->getAccountsPeriodBalance($periodfrom_id, $accounts_id, 0);
$transactionamt2 = $acc->getAccountsPeriodBalance($periodto_id, $accounts_id, 0);
$displayamt1 = number_format($transactionamt1, 2);
$displayamt2 = number_format($transactionamt2, 2);
}
switch ($classtype) {
case "1S":
$totalsales1 = $totalsales1 + abs($transactionamt1);
$totalsales2 = $totalsales2 + abs($transactionamt2);
break;
case "2C":
$totalcost1 = $totalcost1 + abs($transactionamt1);
$totalcost2 = $totalcost2 + abs($transactionamt2);
break;
case "3O":
$totalotherincome1 = $totalotherincome1 + abs($transactionamt1);