caipin 5 年之前
父節點
當前提交
f046d3c2db
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      protected/class/receipt.func.php

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

@@ -1824,12 +1824,11 @@ function excelRCData($summaryData,$aiAllList,$cglist,$year){
 					
 					//$sectionCount[$aiak]['1'].$onRow
 					
-					$obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$sectionCount[$aiak]['0'].$onRow.':'.$sectionCount[$aiak]['0'].$onRow.')' );//公式
+					$obj->getactivesheet()->setCellValue( $col.$onRow, '=SUM('.$sectionCount[$aiak]['0'].$onRow.':'.$sectionCount[$aiak]['1'].$onRow.')' );//公式
 					$col++;
 					foreach ($aiav as $k=>$v){//项目细则
 						foreach ($summaryData[$value['cid']][$month][$aiak] as $dsk=>$dsv){//数据实体
 							if($dsv['item']==$v['name']){
-								
 								$obj->getactivesheet()->setCellValue ( $col.$onRow,$dsv['price']);
 								break;
 							}