本文整理汇总了PHP中Accounts::getAccountDateRangeValue方法的典型用法代码示例。如果您正苦于以下问题:PHP Accounts::getAccountDateRangeValue方法的具体用法?PHP Accounts::getAccountDateRangeValue怎么用?PHP Accounts::getAccountDateRangeValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Accounts
的用法示例。
在下文中一共展示了Accounts::getAccountDateRangeValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$prefix = " ";
} elseif ($treelevel == 3) {
$prefix = " ";
} elseif ($treelevel == 4) {
$prefix = " ";
}
if ($showplacefolderindicator == 1 && $placeholder == 1) {
$displaytext = $prefix . "[" . $accounts_name . "]";
} else {
$displaytext = $prefix . $accounts_name;
}
if ($showaccountcode == "on") {
$accounts_name = $accountcode_full . "-" . $accounts_name;
}
if ($transactionamt == 0 && $placeholder == 1 && $treelevel == $reportlevel) {
$lastbalance = $acc->getAccountDateRangeValue($datefrom, $dateto, $accounts_id, 0, $organization_id);
} elseif ($placeholder == 1) {
$lastbalance = 0;
}
switch ($classtype) {
case "5A":
$totalasset = $totalasset + $lastbalance;
if ($placeholder == 0) {
$displayamt = changeNegativeNumberFormat($lastbalance, 2);
} elseif ($placeholder == 1 && $treelevel < $reportlevel) {
$displayamt = "";
} elseif ($placeholder == 1 && $treelevel == $reportlevel) {
$displayamt = changeNegativeNumberFormat($lastbalance, 2);
}
break;
case "6L":
示例2: elseif
if ($classtype == "6L" || $classtype == "7E") {
$displayamt[$k] = number_format($transactionamt[$k] * -1, 0, ".", "");
} else {
$displayamt[$k] = number_format($transactionamt[$k], 0, ".", "");
}
}
} elseif ($placeholder == 1 && $treelevel < $reportlevel) {
for ($k = 0; $k < $m; $k++) {
$displayamt[$k] = "";
}
} else {
for ($k = 0; $k < $m; $k++) {
// $acc->($datefrom1,$dateto1,$accounts_id,0);
$datefrom = "0000-00-00";
$dateto = getLastDayByMonth($monthname[$k]);
$transactionamt[$k] = $acc->getAccountDateRangeValue($datefrom, $dateto, $accounts_id, 0, $organization_id);
//$transactionamt2=$acc->getAccountsPeriodBalance($periodto_id,$accounts_id,0);
if ($classtype == "6L" || $classtype == "7E") {
$displayamt[$k] = number_format($transactionamt[$k] * -1, 0, ".", "");
} else {
$displayamt[$k] = number_format($transactionamt[$k], 0, ".", "");
}
}
}
$tmparray = array();
$data = array($prefix . $displaytext);
for ($k = 0; $k < $m; $k++) {
$data[] = $displayamt[$k];
}
switch ($classtype) {
case "5A":
示例3: elseif
if ($treelevel == 1) {
$prefix = "";
} elseif ($treelevel == 2) {
$prefix = " ";
} elseif ($treelevel == 3) {
$prefix = " ";
} elseif ($treelevel == 4) {
$prefix = " ";
}
if ($showplacefolderindicator == 1 && $placeholder == 1) {
$displaytext = $prefix . "[" . $accounts_name . "]";
} else {
$displaytext = $prefix . $accounts_name;
}
if ($placeholder == 1 && $treelevel == $reportlevel) {
$transactionamt1 = $acc->getAccountDateRangeValue($datefrom1, $dateto1, $accounts_id, 0, $organization_id);
$transactionamt2 = $acc->getAccountDateRangeValue($datefrom2, $dateto2, $accounts_id, 0, $organization_id);
} elseif ($placeholder == 1) {
$transactionamt1 = 0;
$transactionamt2 = 0;
}
switch ($classtype) {
case "1S":
$totalsales1 = $totalsales1 + $transactionamt1;
$totalsales2 = $totalsales2 + $transactionamt2;
if ($placeholder == 0) {
$displayamt1 = changeNegativeNumberFormat($transactionamt1 * -1, 2);
$displayamt2 = changeNegativeNumberFormat($transactionamt2 * -1, 2);
} elseif ($placeholder == 1 && $treelevel < $reportlevel) {
$displayamt1 = "";
$displayamt2 = "";