|
@@ -2883,8 +2883,15 @@ class ReceiptController extends DooController {
|
|
|
$this->render ( "/admin/approvalExpenses", $data );
|
|
|
}
|
|
|
function expensesDoc() {
|
|
|
- $rid = isset ( $this->params ['rid'] ) ? $this->params ['rid'] : 0;
|
|
|
+ $rid = isset ( $this->params ['rid'] ) ? $this->params ['rid'] : '';
|
|
|
|
|
|
+ Doo::loadClass ( 'XDeode' );
|
|
|
+ $XDeode = new XDeode ( 5 );
|
|
|
+ if (!empty($rid)&&!is_numeric($rid))
|
|
|
+ $rid = $XDeode->decode ( $rid );
|
|
|
+ if(!is_numeric($rid))
|
|
|
+ die ( 'illegal request' );
|
|
|
+
|
|
|
Doo::loadModel ( 'receipt' );
|
|
|
$receipt = new receipt ();
|
|
|
|
|
@@ -10711,7 +10718,7 @@ class ReceiptController extends DooController {
|
|
|
$itemHtml = '';
|
|
|
$categoryHtml = '';
|
|
|
$itemKeyList = array_keys ( $itemList );
|
|
|
-
|
|
|
+ $revisePrice=0;
|
|
|
// 报销单内容详情
|
|
|
foreach ( $list as $key => $value ) {
|
|
|
$accountItemList = json_decode ( $value ['accountItem'], true );
|
|
@@ -10743,8 +10750,9 @@ class ReceiptController extends DooController {
|
|
|
}
|
|
|
}
|
|
|
//金额调整和费用查看
|
|
|
-
|
|
|
-
|
|
|
+ $revisePrice+=$value ['revisePrice'];
|
|
|
+ $receiptItemHtml .= '<td class="taR">'.$value ['revisePrice'].'</td>';
|
|
|
+ $receiptItemHtml .= '<td class="taR"><a href="#detail" data-toggle="modal" onclick=showExplanation("'.$value ['explanation'].'")>查看</a></td>';
|
|
|
$list [$key] ['receiptItemHtml'] = $receiptItemHtml;
|
|
|
}
|
|
|
|
|
@@ -10780,6 +10788,7 @@ class ReceiptController extends DooController {
|
|
|
$receiptTotalHtml .= '<th></th>';
|
|
|
}
|
|
|
}
|
|
|
+ $receiptTotalHtml .= '<th>'.$revisePrice.'</th>';
|
|
|
|
|
|
$stList = $statistics->getStatisticsBySid($staffDetail ['sid'], $year, $month);
|
|
|
if (empty ( $stList ))
|
|
@@ -10802,6 +10811,7 @@ class ReceiptController extends DooController {
|
|
|
}
|
|
|
|
|
|
$data ['username'] = urlencode ( $username );
|
|
|
+ $data ['usernameEN'] = $username ;
|
|
|
$data ['monthHtml'] = $monthHtml;
|
|
|
$data ['receiptTotalHtml'] = $receiptTotalHtml;
|
|
|
$data ['list'] = $list;
|
|
@@ -11263,6 +11273,8 @@ class ReceiptController extends DooController {
|
|
|
$data ['year'] = $year;
|
|
|
$data ['stTitle'] = $stTitle;
|
|
|
|
|
|
+ $data['staffname']=urlencode($staffname);
|
|
|
+
|
|
|
$data ['memu'] = "receipt";
|
|
|
$data ['staff'] = $this->staff;
|
|
|
$data ['receiptMemu'] = 'companyCategoryCollect';
|