|
@@ -14,7 +14,7 @@ function _getReceiptSummaryHtml($cglist,$aiAllList,$dataSummary){
|
|
|
|
|
|
|
|
|
//办事处每月数据展示
|
|
|
- $summaryDateHtml='';
|
|
|
+ $summaryDateHtml='';$yearPriceArray=array();
|
|
|
for($month=1;$month<=12;$month++){
|
|
|
$summaryDateHtml.='<tr>';
|
|
|
$summaryDateHtml.='<th>'.$value['title'].$month.'月合计</th>
|
|
@@ -45,6 +45,8 @@ function _getReceiptSummaryHtml($cglist,$aiAllList,$dataSummary){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $yearPriceArray[$aiak]+=$tempPrice;
|
|
|
+
|
|
|
$itemHtml.='<td class="taR colRed">'.$tempPrice.'</td>';//每个月份 项目金额合计
|
|
|
$itemHtml.=$tempHtml;//每个月份项目细则金额
|
|
|
}
|
|
@@ -72,7 +74,7 @@ function _getReceiptSummaryHtml($cglist,$aiAllList,$dataSummary){
|
|
|
<td class="taR colGreen"></td>';
|
|
|
foreach ($aiAllList as $key=>$value){
|
|
|
//栏目
|
|
|
- $summaryYearHtml.='<td class="taR colRed">'.$tempPrice.'</td>';
|
|
|
+ $summaryYearHtml.='<td class="taR colRed">'.$yearPriceArray[$key].'</td>';
|
|
|
//栏目细则
|
|
|
foreach ($value as $k=>$v){
|
|
|
$summaryYearHtml.='<th>'.$v['name'].'</th>';
|