Jelajahi Sumber

收款相关权限

caipin 8 tahun lalu
induk
melakukan
aad1a37d36

+ 11 - 3
protected/controller/ReceiptController.php

@@ -1930,7 +1930,7 @@ class ReceiptController extends DooController {
 		$receiptList=$receipt->find(array('where'=>'staff='.$this->staff[0]['sid'].' and rid='.$rid,'desc'=>'rid','asArray'=>true));
 
 		$loanList=$loanReceipt->find(array('where'=>'rid='.$receiptList[0]['loanRid'],'desc'=>'rid','asArray'=>true));
-		
+		/*
 		$Locate=0;$roleId=0;$button=0;	
 		foreach ($loanList as $key=>$value){
 			$loanList[$key]['Locate']=$Locate;$Locate++;
@@ -2081,6 +2081,7 @@ class ReceiptController extends DooController {
 			
 		}
 		$data['loanList']=$loanList;
+		*/
 		
 		$Locate=0;$roleId=0;$button=0;	
 		foreach ($receiptList as $key=>$value){
@@ -2258,6 +2259,8 @@ class ReceiptController extends DooController {
 			
 		}
 		
+		//print_r($receiptList);
+		
 		$data['receiptList']=$receiptList;
 		
 		$data['memu']="receipt";
@@ -3141,8 +3144,13 @@ $verifyDetail=$verify->find(array('where'=>' (staff not like "%\"'.$this->staff[
 					 
 					//print_r($verifyDetail);
 					//die;
-					$nowStaff=implode(',', $nowStaffList);
-					$verifyStaff=array($this->staff[0]['sid']."_R"=>array('date'=>date('Y-m-d'),'opinion'=>$opinion,'status'=>$status,'nextStaff'=>$verifyDetail[0][0],'ROLE'=>1));
+				if (!empty($nowStaffList)){
+						$nowStaff=implode(',', $nowStaffList);
+						$verifyStaff=array($this->staff[0]['sid']."_R"=>array('date'=>date('Y-m-d'),'opinion'=>$opinion,'status'=>$status,'nextStaff'=>$verifyDetail[0][0],'ROLE'=>1));
+					}else{
+						$nowStaff=$verifyDetail[1][0];
+						$verifyStaff=array($this->staff[0]['sid']."_R"=>array('date'=>date('Y-m-d'),'opinion'=>$opinion,'status'=>$status,'nextStaff'=>$verifyDetail[1][0]));
+					}
 				}else{
 					
 					if ($verifyDetail[1][1]=='ROLE'){

+ 1 - 1
protected/view/admin/expensesCollect.html

@@ -115,7 +115,7 @@
 							</tr><tr><td colspan="2">{{receiptDetail' value.explanation}}</td></tr>
 							
 							<tr class="warning"><td class="taR"><b>({{receiptDetail' value.receiptOrder}})本次费用合计</b></td>
-							<td class="taR"><b style="font-size:24px">¥{{receiptDetail' value.loanSum}}</b><br>{{receiptDetail' value.loanSumCN}}</td></tr>
+							<td class="taR"><b style="font-size:24px">¥{{receiptDetail' value.sum}}</b><br>{{receiptDetail' value.sumCN}}</td></tr>
 							</tbody>
 						</table>
 	  					

+ 2 - 2
protected/view/admin/invoiceMenu.html

@@ -9,9 +9,9 @@
 
 
 
-
+<!-- if isInvoiceMoldShow({{staff.0.sid}},'收款管理') -->
 	<li class="topLine"><a <!-- if {{receiptMemu}}=="invoiceReceivables" --> class="selected" <!-- endif --> href="/invoiceReceivables">收款录入</a></li>
-
+<!-- endif -->
 	<!-- if isInvoiceMoldShow({{staff.0.sid}},'发票审批') -->
 	<li><a
 			<!-- if {{receiptMemu}}=="invoiceApproval" --> class="selected" <!-- endif -->