Пример #1
0
		        Numbers
		      </td>
		      <td>
		        Vol
		      </td>
		      <td>
		        Numbers
		      </td>
		    </tr>
		      <?php 
            foreach ($allForestPoints as $id => $name) {
                if ($previousCount == 1) {
                    if ($id == '-1' || $id == '0') {
                        $previousDetailYear1 = $markDetail->getForestPrevInOutY($key, $month, $year, $treeId);
                    } else {
                        $previousDetailYear1 = $markDetail->getPointPrevInOutY($key, $month, $year, $id, $treeId);
                    }
                    $previousDetailYearResult[$treeId][$id] = $previousDetailYear1;
                }
                $previousDetailYear = $previousDetailYearResult[$treeId][$id];
                $previousYearTotal = display_float(display_float($previousDetailYear[$treeId]['InVolume'], 3) - display_float($previousDetailYear[$treeId]['OutVolume'], 3));
                $previousYearTotalCount = display_float(display_float($previousDetailYear[$treeId]['InCount'], 3) - display_float($previousDetailYear[$treeId]['OutCount'], 3));
                //*/
                if ($id == '-1' || $id == '0') {
                    $timberInoutDetail = $markDetail->getForestInOut($key, $month, $year);
                } else {
                    $timberInoutDetail = $markDetail->getPointInOut($key, $month, $year, $id);
                }
                $previousDetail = array();
                if ($id == '-1' || $id == '0') {
                    $previousDetail = $markDetail->getForestPrevInOut($key, $month, $year, $treeId);