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

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

@@ -94,7 +94,7 @@ function _getReceiptSummaryHtml($cglist,$aiAllList,$dataSummary,$year){
 				}
 				
 				$summaryYearHtml.='<th>'.$yearLawsPriceArray[$aalk][$v['name']].'</th>';
-				$topYearLawsPrice[$aalk][$v['name']]+=$yearPriceArray[$aalk];
+				$topYearLawsPrice[$aalk][$v['name']]+=$yearLawsPriceArray[$aalk][$v['name']];
 			}
 		}
 		$summaryYearHtml.='</tr>';
@@ -120,7 +120,7 @@ function _getReceiptSummaryHtml($cglist,$aiAllList,$dataSummary,$year){
 		}
 	}
 	$topYearTempHtml.='</tr>';
-	
+	$topHtml='';
 	$topHtml.=$topYearTempHtml;
 	$topHtml.=$html;