caipin 5 years ago
parent
commit
3de8269163
1 changed files with 3 additions and 3 deletions
  1. 3 3
      protected/class/receipt.func.php

+ 3 - 3
protected/class/receipt.func.php

@@ -1824,8 +1824,6 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
 		$LS+=14;
 	}
 	
-	
-	
 	foreach ($aiAllList as $aiak=>$aiav){
 		$sectionStart=$sectionCount[$aiak]['0'];
 		$sectionStart++;
@@ -1878,7 +1876,9 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
 			$obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$sectionStart.$onRow.':'.$sectionCount[$aiak]['1'].$onRow.')' );
 			$col++;
 			foreach ($aiav as $k=>$v){//项目细则
-				
+				$sumRowStart=$onRow-1;
+				$obj->getactivesheet()->setCellValue( $col.$onRow, '='.$col.$sumRowStart.'/'.$col.'1' );
+				$col++;
 			}
 		}