caipin 5 年 前
コミット
0276a6f220
1 ファイル変更7 行追加2 行削除
  1. 7 2
      protected/class/receipt.func.php

+ 7 - 2
protected/class/receipt.func.php

@@ -1824,14 +1824,19 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
 			$col++;
 			foreach ($aiav as $k=>$v){//项目细则
 				
+				$sumRowStart=$onRow+2;
+				$sumRowEnd=$sumRowStart+12;
 				
-				
-				//$obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$sectionCount[$aiak]['0'].$onRow.':'.$sectionCount[$aiak]['1'].$onRow.')' );
+				$obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$col.$sumRowStart.':'.$col.$sumRowEnd.')' );
 				$col++;
 			}
 		}
 		$onRow++;//行数增加
 		
+		//办事处年占比
+		
+		$onRow++;//行数增加
+		
 		//办事处每月合计详情
 		for($month=1;$month<=12;$month++){
 			$obj->getactivesheet()->setCellValue ( 'A'.$onRow,$value['title'].$month.'月合计' );