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

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

@@ -9,8 +9,8 @@ function _getReceiptSummaryHtml($cglist,$aiAllList,$dataSummary){
 		
 		
 		//初始化年合计数组
-		foreach ($aiAllList as $key=>$value){
-			$yearPriceArray[$key]=0;
+		foreach ($aiAllList as $yptempk=>$yptempv){
+			$yearPriceArray[$yptempk]=0;
 			
 			//栏目细则
 // 			foreach ($value as $k=>$v){
@@ -80,11 +80,11 @@ function _getReceiptSummaryHtml($cglist,$aiAllList,$dataSummary){
 										<td class="taR"></td>
 										<td class="taR"></td>
 										<td class="taR colGreen"></td>';
-		foreach ($aiAllList as $key=>$value){
+		foreach ($aiAllList as $aalk=>$aalv){
 			//栏目
-			$summaryYearHtml.='<td class="taR colRed">'.$yearPriceArray[$key].'</td>';
+			$summaryYearHtml.='<td class="taR colRed">'.$yearPriceArray[$aalk].'</td>';
 			//栏目细则
-			foreach ($value as $k=>$v){
+			foreach ($aalv as $k=>$v){
 				$summaryYearHtml.='<th>'.$v['name'].'</th>';
 			}
 		}