当前位置: 首页>>代码示例>>PHP>>正文


PHP Accounts::getAccountsPeriodBalance方法代码示例

本文整理汇总了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);
开发者ID:gauravsaxena21,项目名称:simantz,代码行数:31,代码来源:viewincomestatement_duo2.php

示例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);
开发者ID:gauravsaxena21,项目名称:simantz,代码行数:31,代码来源:viewincomestatement_duoperiod.php


注:本文中的Accounts::getAccountsPeriodBalance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。