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


PHP Accounts::getAccountDateRangeValue方法代码示例

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

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

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


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