caipin 5 năm trước cách đây
mục cha
commit
5b618ce50b

+ 22 - 0
global/js/receipt.js

@@ -270,6 +270,17 @@ $(function() {
 		var travelR=parseFloat($("#travelR").val());
 		var trainR=parseFloat($("#trainR").val());
 		var otherR=parseFloat($("#otherR").val());
+		
+		if(typeof(travelR)=="number"){
+			travelR=0;
+		}
+		if(typeof(trainR)=="number"){
+			trainR=0;
+		}
+		if(typeof(otherR)=="number"){
+			otherR=0;
+		}
+		
 		var RS=parseFloat($i)+parseFloat(travelR)+parseFloat(trainR)+parseFloat(otherR);
 		
 		$("#RS").html("¥"+RS.toFixed(2));
@@ -324,6 +335,17 @@ $(function() {
 		var agencyR=$("#agencyR").val();
 		var travelR=parseFloat($("#travelR").val());
 		var trainR=parseFloat($("#trainR").val());
+		
+		if(typeof(travelR)=="number"){
+			travelR=0;
+		}
+		if(typeof(trainR)=="number"){
+			trainR=0;
+		}
+		if(typeof(otherR)=="number"){
+			otherR=0;
+		}
+		
 		var RS=parseFloat($i)+parseFloat(agencyR)+parseFloat(travelR)+parseFloat(trainR);
 		
 		$("#RS").html("¥"+RS.toFixed(2));

+ 5 - 1
protected/config/acl.conf.php

@@ -170,6 +170,9 @@ $acl ['INVOICE'] ['allow'] = array (
 				'invoicePaperAdd',
 				'invoicePaperDel',
 				'ajaxGetinvoicePaperAchieve',
+				
+				'invoiceElectronic',
+				
 				'invoiceAggregate',
 				'invoiceAggregateStaff',
 				'invoiceAggregateCategory',
@@ -325,7 +328,8 @@ $acl ['DIRECTORIES'] ['allow'] = array (
 				'ajaxDeleteTagCompany',
 				'remindCL',
 				'DoEdiTag',
-				'addClientByCompany'
+				'addClientByCompany',
+				'deleteToolTip'
 		)
 );
 

+ 1 - 0
protected/config/routes.conf.php

@@ -667,6 +667,7 @@ $route['*']['/invoicePaperAdd'] = array('InvoiceController', 'invoicePaperAdd');
 $route['*']['/invoicePaperDel/:ipidKey'] = array('InvoiceController', 'invoicePaperDel');
 $route['*']['/ajaxGetinvoicePaperAchieve'] = array('InvoiceController', 'ajaxGetinvoicePaperAchieve');
 
+$route['*']['/invoiceElectronic'] = array('InvoiceController', 'invoiceElectronic');
 
 //数据导入
 $route['*']['/importInvoice'] = array('InvoiceController', 'importInvoice');

+ 5 - 2
protected/controller/AuthenticationController.php

@@ -18,7 +18,7 @@ class AuthenticationController extends DooController {
 			Doo::loadModel('client');
 			$client=new client();
 			//status=3 or status=4 or status=5
-			$longleInfo=$longle->getOne(array ('where' => "key_num= '".$key."' and (status=3 or status=4 or status=5 or status=9)",'asArray' => TRUE));
+			$longleInfo=$longle->getOne(array ('where' => "key_num= '".$key."' and (status=3 or status=4 or status=5 or status=9 or status=10)",'asArray' => TRUE));
 			if (empty($longleInfo)){
 				echo json_encode(array('list'=>array()));die;
 			}
@@ -63,7 +63,10 @@ class AuthenticationController extends DooController {
 			Doo::loadModel('client');
 			$client=new client();
 			
-			$longleInfo=$longle->getOne(array ('where' => "SerialNumber= '".$key."' and (status=3 or status=4 or status=5)",'asArray' => TRUE));
+			$longleInfo=$longle->getOne(array ('where' => "SerialNumber= '".$key."' and (status=3 or status=4 or status=5 or status=9 or status=10)",'asArray' => TRUE));
+			
+			//echo "SerialNumber= '".$key."' and (status=3 or status=4 or status=5 or status=10)";
+			
 			if (empty($longleInfo)){
 				echo json_encode(array('list'=>array()));die;
 			}

+ 4 - 0
protected/controller/InvoiceAjaxController.php

@@ -73,6 +73,10 @@ class InvoiceAjaxController extends DooController {
 		}
 	}
 	
+	function ajaxGetInvoceList(){
+		
+	}
+	
 	/**
 	 * 获得已经结算完成的培训班
 	 */

+ 74 - 15
protected/controller/InvoiceController.php

@@ -453,6 +453,8 @@ class InvoiceController extends DooController {
 		$invoiceQuantity = $this->get_args ( 'invoiceQuantity' ) && is_numeric ( $this->get_args ( 'invoiceQuantity' ) ) ? $this->get_args ( 'invoiceQuantity' ) : 0;
 		$invoiceUnitPrice = $this->get_args ( 'invoiceUnitPrice' ) && is_numeric ( $this->get_args ( 'invoiceUnitPrice' ) ) ? $this->get_args ( 'invoiceUnitPrice' ) : 0;
 		
+		$invoiceForm = $this->get_args ( 'invoiceForm' ) ? $this->get_args ( 'invoiceForm' ) : "";
+		
 		$invoiceElement = $this->get_args ( 'invoiceElement' ) ? $this->get_args ( 'invoiceElement' ) : "";
 		$invoiceTitle = $this->get_args ( 'invoiceTitle' ) ? $this->get_args ( 'invoiceTitle' ) : "";
 		$invoiceCompany = $this->get_args ( 'invoiceCompany' ) ? $this->get_args ( 'invoiceCompany' ) : "";
@@ -524,7 +526,7 @@ class InvoiceController extends DooController {
 		if (empty ( $this->staff [0] ))
 			die ( 'illegal request-Please login' );
 		
-		if (! empty ( $cid ) && ! empty ( $invoiceQuantity ) && ! empty ( $invoiceUnitPrice ) && ! empty ( $invoiceElement ) && ! empty ( $settlementType )) {
+		if (! empty ( $cid ) && ! empty ( $invoiceQuantity ) && ! empty ( $invoiceUnitPrice ) && ! empty ( $invoiceElement ) && ! empty ( $settlementType )&&!empty($invoiceForm)) {
 			Doo::loadModel ( 'invoice' );
 			$invoice = new invoice ();
 			Doo::loadModel ( 'L_category' );
@@ -576,10 +578,22 @@ class InvoiceController extends DooController {
 				die ( 'illegal request-settlementError' );
 			}
 
+			
+			if($invoiceForm=='electronic'){
+				$invoiceSerial="#FE" . date('Ymd') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);
+				$invoiceForm=1;
+			}elseif($invoiceForm=='paper'){
+				$invoiceSerial="#F" . date('Ymd') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);
+				$invoiceForm=0;
+			}else{
+				die ( 'illegal request-invoiceForm' );
+			}
+			
 			$item = array (
 					'cid' => $cid,
 					'categoryName' => $categoryDetil ['title'],
 					'invoiceElement' => $invoiceElement,
+					'invoiceForm'=>$invoiceForm,
 					
 					'invoiceQuantity' => $invoiceQuantity,
 					'invoiceUnitPrice' => $invoiceUnitPrice,
@@ -589,7 +603,7 @@ class InvoiceController extends DooController {
 					'settlementType' => $st,
 					'doPost' => $doPost,
 					'status' => 1,
-					'invoiceSerial' => "#F" . date('Ymd') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT),
+					'invoiceSerial' => $invoiceSerial,
 					'date' => date ( "Y-m-d H:i:s" ),
 					'updateTime' => date ( "Y-m-d H:i:s" ),
 					'sid' => $this->staff [0] ['sid'],
@@ -2568,7 +2582,7 @@ class InvoiceController extends DooController {
 		if (empty ( $invoiceDetail ))
 			die ( 'illegal request' );
 		
-		$invoicePaperList = $invoicePaper->getInvoicePaperByInvoiceType ( $invoiceDetail ['invoiceType'] );
+		$invoicePaperList = $invoicePaper->getInvoicePaperByInvoiceType ( $invoiceDetail ['invoiceType'],$invoiceDetail['invoiceForm'] );
 		$invoiceOperationLogList = $invoiceOperationLog->getInvoiceOperationLogByIid ( $iid );
 		
 		if ($invoiceDetail ['settlementType'] == 1) {
@@ -2940,7 +2954,7 @@ class InvoiceController extends DooController {
 		$limit = '0,20';
 		$list = $invoice->getInvoiceByUntreadStatusPage ( $limit, $sql );
 		
-		// print_r($list);
+		 //print_r($list);
 		$this->data ['MebSeaEn'] = $MebSea;
 		/*
 		 * $this->data ['get'] = $get; $this->data ['page'] = $pageinfo; $this->data ['date'] = $date;
@@ -4142,6 +4156,25 @@ class InvoiceController extends DooController {
 	}
 	
 	/**
+	 * 电子发票管理
+	 */
+	function invoiceElectronic() {
+		$status = $this->get_args ( 'status' ) ? $this->get_args ( 'status' ) : 'ALL';
+		$invoiceType = $this->get_args ( 'invoiceType' ) ? $this->get_args ( 'invoiceType' ) : "ALL";
+	
+		$date = $this->get_args ( 'date' ) ? $this->get_args ( 'date' ) : "";
+	
+		$this->data ['dateString'] = $date;
+		$this->data ['status'] = $status;
+		$this->data ['invoiceType'] = $invoiceType;
+	
+		$this->data ['memu'] = "invoice";
+		$this->data ['staff'] = $this->staff;
+		$this->data ['receiptMemu'] = 'invoicePaper';
+		$this->render ( "/invoice/invoiceElectronic", $this->data );
+	}
+	
+	/**
 	 * 获得纸票分页数据
 	 */
 	function ajaxGetinvoicePaperAchieve() {
@@ -4151,6 +4184,8 @@ class InvoiceController extends DooController {
 		$status = $this->get_args ( 'status' ) ? $this->get_args ( 'status' ) : 'ALL';
 		$invoiceType = $this->get_args ( 'invoiceType' ) ? $this->get_args ( 'invoiceType' ) : "ALL";
 		
+		$invoiceForm = $this->get_args ( 'invoiceForm' )&&is_numeric($this->get_args ( 'invoiceForm' )) ? $this->get_args ( 'invoiceForm' ) : "0";
+		
 		$invoiceTrain = $this->get_args ( 'invoiceTrain' ) ? $this->get_args ( 'invoiceTrain' ) : "ORDINARY";
 		$date = $this->get_args ( 'date' ) ? $this->get_args ( 'date' ) : "";
 		
@@ -4178,6 +4213,12 @@ class InvoiceController extends DooController {
 		elseif ($invoiceType == 'SPECIAL')
 			$con .= ' and a.invoiceType=1 ';
 		
+		if($invoiceForm==0){
+			$con .= ' and a.invoiceForm=0 ';
+		}else{
+			$con .= ' and a.invoiceForm=1 ';
+		}
+			
 		$dateArr = explode ( ':', $date );
 		$D1 = $dateString = '';
 		$D2 = '';
@@ -4197,7 +4238,7 @@ class InvoiceController extends DooController {
 		if (! empty ( $MebSea ))
 			$con .= ' and ( b.invoiceTitle like "%' . $MebSea . '%" or b.invoiceCompany like "%' . $MebSea . '%" or a.invoiceNo like "%' . $MebSea . '%"  )';
 		
-		$invoiceTotal = $invoicePaper->getInvoicePaperCount ();
+		$invoiceTotal = $invoicePaper->getInvoicePaperCount ($invoiceForm);
 		
 		$sql = '  ' . $con;
 		$limit = $page . ',' . $page_size;
@@ -4266,6 +4307,8 @@ class InvoiceController extends DooController {
 		$invoiceNoStart = $this->get_args ( 'invoiceNoStart' ) && is_numeric ( $this->get_args ( 'invoiceNoStart' ) ) ? $this->get_args ( 'invoiceNoStart' ) : 0;
 		$invoiceNoTotal = $this->get_args ( 'invoiceNoTotal' ) && is_numeric ( $this->get_args ( 'invoiceNoTotal' ) ) ? $this->get_args ( 'invoiceNoTotal' ) : 0;
 		
+		$invoiceForm = $this->get_args ( 'invoiceForm' ) && is_numeric ( $this->get_args ( 'invoiceForm' ) ) ? $this->get_args ( 'invoiceForm' ) : 0;
+		
 		if ($invoiceType != '' && ! empty ( $invoiceCode ) && ! empty ( $invoiceNoStart ) && ! empty ( $invoiceNoTotal )) {
 			
 			$sum = $invoiceNoStart + $invoiceNoTotal;
@@ -4281,7 +4324,7 @@ class InvoiceController extends DooController {
 			Doo::db ()->beginTransaction ();
 			// 批量存储纸质发票
 			$date = date ( "Y-m-d H:i:s" );
-			$sql = 'INSERT INTO CLD_invoicePaper (invoiceType, invoiceCode,invoiceNo,date)
+			$sql = 'INSERT INTO CLD_invoicePaper (invoiceType, invoiceCode,invoiceNo,date,invoiceForm)
 				  VALUES ';
 			$paperList = array ();
 			for($invoiceNoStart; $invoiceNoStart <= $sum - 1; $invoiceNoStart ++) {
@@ -4290,7 +4333,7 @@ class InvoiceController extends DooController {
 				$INLENGHT = strlen ( ( int ) $invoiceNoStart ) + $sumLenght;
 				$var = sprintf ( "%0" . $INLENGHT . "d", $invoiceNoStart );
 				
-				$paperSql = '(' . $invoiceType . ',"' . $invoiceCode . '","' . $var . '","' . $date . '")';
+				$paperSql = '(' . $invoiceType . ',"' . $invoiceCode . '","' . $var . '","' . $date . '","'.$invoiceForm.'")';
 				array_push ( $paperList, $paperSql );
 			}
 			
@@ -4300,7 +4343,12 @@ class InvoiceController extends DooController {
 			
 			Doo::db ()->query ( $sql );
 			Doo::db ()->commit ();
-			return 'invoicePaper';
+			if($invoiceForm==1){
+				return 'invoiceElectronic';
+			}else{
+				return 'invoicePaper';
+			}
+			
 		}
 		die ( 'illegal request' );
 	}
@@ -6977,20 +7025,27 @@ class InvoiceController extends DooController {
 						<th class="taC" width="150">结算方式</th><td colspan="3">软件销售</td>
 					</tr>';
 				$html .= '	</tbody></table>';
-				if ($detail ['invoiceType'] == 0)
+				if ($detail ['invoiceType'] == 0){
 					$html .= '<table class="table table-bordered table-condensed"><tbody>
-							<tr><th colspan="4" class="taC">增值税普通发票</th></tr><tr>
+							<tr><th colspan="4" class="taC">增值税普通发票';
+							if($detail ['invoiceForm']==1){
+								$html .= '( <span class="colRed">电子发票</span> )';
+							}
+					$html .= '</th></tr><tr>
 							<th class="taC" width="150">发票抬头</th><td >' . $detail ['invoiceTitle'] . '</td>
 							<th class="taC" width="150">纳税人识别码</th><td>' . $detail ['TIN'] . '</td>		
 									</tr>';
-				else
+				}else{
 					$html .= '<table class="table table-bordered table-condensed"><tbody>
-							<tr><th colspan="4" class="taC">增值税专用发票</th></tr><tr>
+							<tr><th colspan="4" class="taC">增值税专用发票';
+					if($detail ['invoiceForm']==1){
+						$html .= '( <span class="colRed">电子发票</span> )';
+					}
+					$html .= '</th></tr><tr>
 							<th class="taC" width="150">单位名称</th><td>' . $detail ['invoiceCompany'] . '</td>
 							<th class="taC" width="150">纳税人识别码</th><td>' . $detail ['TIN'] . '</td></tr>
-						
 									';
-				
+				}
 				$html .= '<tr>
 							<th class="taC">注册地址</th><td>' . $detail ['address'] . '</td>
 							<th class="taC">注册电话</th><td>' . $detail ['phone'] . '</td>
@@ -7416,7 +7471,11 @@ class InvoiceController extends DooController {
 		Doo::loadModel ( 'invoice' );
 		$invoice = new invoice ();
 		
-		$invoiceDetail = $invoice->getInvoiceByTitle ( $title, 'FUZZY', " and status=2 and printStatus=1 and untreadStatus=0 and irid='' ", true );
+		
+		
+		$invoiceDetail = $invoice->getInvoiceByTitle ( $title, 'FUZZY', " and status=2 and printStatus=1 and untreadStatus=0 and (irid='' or irid is null) ", true );
+		
+		
 		
 		$invoiceHtml = '';
 		if (! empty ( $invoiceDetail )) {

+ 3 - 1
protected/controller/MainController.php

@@ -556,7 +556,9 @@ class MainController extends DooController {
 				) );
 			}
 		} else {
-			$sql = 'SELECT `CLD_L_category`.cid,`CLD_L_category`.title,count(`CLD_staff`.sid) as count FROM `CLD_L_category` left join `CLD_staff` on `CLD_L_category`.cid=`CLD_staff`.cid group by `CLD_staff`.cid HAVING count(`CLD_staff`.sid)>0 order by count(`CLD_staff`.sid) desc';
+			$sql = 'SELECT `CLD_L_category`.cid,`CLD_L_category`.title,count(`CLD_staff`.sid) as count FROM `CLD_L_category` 
+					left join `CLD_staff` on `CLD_L_category`.cid=`CLD_staff`.cid  group by `CLD_staff`.cid HAVING count(`CLD_staff`.sid)>0 order by count(`CLD_staff`.sid) desc';
+			//echo $sql;
 			$query = Doo::db ()->query ( $sql );
 			$result = $query->fetchAll ();
 			$categorylist2 = $result;

+ 28 - 0
protected/controller/ReceiptController.php

@@ -272,6 +272,34 @@ class ReceiptController extends DooController {
 	 */
 	function feeAgency(){
 		
+		Doo::loadModel ( 'L_category' );
+		$lCategory = new L_category ();
+		Doo::loadModel ( 'verify' );
+		$verify = new verify ();
+		Doo::loadModel ( 'accountItem' );
+		$accountItem = new accountItem ();
+		Doo::loadModel ( "role" );
+		$role = new role ();
+		
+		$acItem = $accountItem->find ( array (
+				'asArray' => true
+		) );
+		$veList = $verify->getVerifyBySubordinate('RECEIPT');
+		
+		$data ['category'] = $lCategory->find ( array (
+				'asArray' => true
+		) );
+		$data ['veList'] = $veList;
+		$data ['acItem'] = $acItem;
+		
+		$data ['memu'] = "receipt";
+		$data ['staff'] = $this->staff;
+		$data ['receiptMemu'] = 'saeaBorad';
+		$data ['verifyId'] = $this->verifyId;
+		
+		$data ['executeId'] = $this->executeId;
+		
+		$this->render ( "/receipt/feeAgency", $data );
 	}
 	
 	/**

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 39 - 10
protected/controller/SoftController.php


+ 13 - 3
protected/model/invoice.php

@@ -32,6 +32,8 @@ class invoice extends DooModel {
 	 */
 	public $printStatus;
 	public $postStatus;
+	
+	public $invoiceForm;
 	public $invoiceManage;
 	/**
 	 *
@@ -215,6 +217,7 @@ class invoice extends DooModel {
 			'printStatus',
 			'postStatus',
 			'untreadStatus',
+			'invoiceForm',
 			'invoiceQuantity',
 			'invoiceUnitPrice',
 			'invoicePrice',
@@ -436,11 +439,12 @@ class invoice extends DooModel {
 					'asArray' => TRUE 
 			);
 			
-			if ($query == $this->FUZZY)
+			if ($query == $this->FUZZY){
 				$condition += array (
 						'where' => " (invoiceTitle like '%" . $title . "%' or invoiceCompany like '%" . $title . "%')  " . $cond 
 				);
-			else
+				//echo " (invoiceTitle like '%" . $title . "%' or invoiceCompany like '%" . $title . "%')  " . $cond ;
+			}else
 				$condition += array (
 						'where' => "(invoiceTitle = '" . $title . "' or invoiceCompany= '" . $title . "') " . $cond 
 				);
@@ -1018,7 +1022,13 @@ class invoice extends DooModel {
 				$list [$key] ['untreadCom'] = $express [1];
 			}
 			
-			$list [$key] ['irList'] = $invoiceReceivables->getInvoiceReceivablesInIridString ( $value ['irid'] );
+			$paid=$value['invoicePrice']-$value['invoiceBalance'];
+			
+			$list [$key] ['irList'] = $invoiceReceivables->getInvoiceReceivablesInIridString ( $value ['irid'] );// array(0=>array('sumPrice'=>$paid)); // 
+			if(!empty($list [$key] ['irList'])){
+				$list [$key] ['irList'][0]['sumPrice']=$paid;
+			}
+			
 			
 			if ($olStatus == 'desc')
 				$list [$key] ['operationLog'] = $invoiceOperationLog->getInvoiceOperationLogByIid ( $value ['iid'], 'desc' );

+ 4 - 3
protected/model/invoicePaper.php

@@ -50,8 +50,9 @@ class invoicePaper extends DooModel {
 		}
 		return $list;
 	}
-	function getInvoicePaperCount() {
+	function getInvoicePaperCount($invoiceForm=0) {
 		$listCount = $this->count ( array (
+				'where'=>'invoiceForm='.$invoiceForm,
 				'asArray' => TRUE 
 		) );
 		return $listCount;
@@ -61,10 +62,10 @@ class invoicePaper extends DooModel {
 	 * @param number $invoiceType
 	 * @return unknown
 	 */
-	function getInvoicePaperByInvoiceType( $invoiceType = 0) {
+	function getInvoicePaperByInvoiceType( $invoiceType = 0,$invoiceForm=0) {
 		
 		$list = $this->find ( array (
-				'where' => 'iid=0 and invoiceType='.$invoiceType,
+				'where' => 'iid=0 and invoiceType='.$invoiceType.' and invoiceForm='.$invoiceForm,
 				'asArray' => TRUE 
 		) );
 		Doo::loadClass ( 'XDeode' );

+ 2 - 2
protected/model/longle.php

@@ -87,8 +87,8 @@ class longle extends DooModel {
 		return $this->find ( array ('where' => " key_num like '%".$keynum."%'",'limit'=>'10', 'asArray' => TRUE ) );
 	}
 	
-	public function getLongleByKeyNumDetail($keynum){
-		return $this->getOne ( array ('where' => " key_num = '".$keynum."'", 'asArray' => TRUE ) );
+	public function getLongleByKeyNumDetail($keynum,$SerialNumber=''){
+		return $this->getOne ( array ('where' => " key_num = '".$keynum."' and SerialNumber like '".$SerialNumber."'", 'asArray' => TRUE ) );
 	}
 	
 	public function getLongleByLid($lid){

+ 7 - 0
protected/view/admin/invoiceAdd.html

@@ -313,6 +313,13 @@ $("input[autoIFBTIN]").autocomplete({
 								</tr>
 								
 								<tr>
+									<th class="taC"><span class="colRed">*</span>发票形式</th><td colspan="3">
+									<label class="radio inline"><input type="radio" checked name="invoiceForm" value="paper">纸质发票</label>
+									<label class="radio inline"><input type="radio" name="invoiceForm" value="electronic">电子发票</label>
+									</td>
+								</tr>
+								
+								<tr>
 									<th class="taC"><span class="colRed">*</span>发票类型</th><td colspan="3">
 									<label class="radio inline"><input checked name="invoiceType" id="invoicePlain" onclick="invoiceShow()"  value="0" type="radio"  >增值税普通发票</label>
 									<label class="radio inline colRed"><input name="invoiceType" id="invoiceSpecial" onclick="invoiceShow()"  value="1" type="radio">增值税专用发票</label>

+ 7 - 0
protected/view/admin/invoiceAddFill.html

@@ -259,6 +259,13 @@ $("input[autoIFBTIN]").autocomplete({
 								</tr>
 								
 								<tr>
+									<th class="taC"><span class="colRed">*</span>发票形式</th><td colspan="3">
+									<label class="radio inline"><input type="radio" <!-- if {{invoiceDetail.invoiceForm}}==0 --> checked <!-- endif --> name="invoiceForm" value="paper">纸质发票</label>
+									<label class="radio inline"><input type="radio" <!-- if {{invoiceDetail.invoiceForm}}==1 --> checked <!-- endif --> name="invoiceForm" value="electronic">电子发票</label>
+									</td>
+								</tr>
+								
+								<tr>
 									<th class="taC"><span class="colRed">*</span>发票类型</th><td colspan="3">
 									<label class="radio inline"><input <!-- if {{invoiceDetail.invoiceType}}==0 --> checked <!-- endif --> name="invoiceType" id="invoicePlain" onclick="invoiceShow()"  value="0" type="radio"  >增值税普通发票</label>
 									<label class="radio inline colRed"><input <!-- if {{invoiceDetail.invoiceType}}==1 --> checked <!-- endif --> name="invoiceType" id="invoiceSpecial" onclick="invoiceShow()"  value="1" type="radio">增值税专用发票</label>

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

@@ -67,7 +67,7 @@
 						<table class="table table-bordered table-condensed">
 							<tbody>
 							<tr>
-								<th colspan="4" class="taC">增值税普通发票</th>
+								<th colspan="4" class="taC">增值税普通发票<!-- if {{invoiceDetail.invoiceForm}}==1 --> ( <span class="colRed">电子发票</span> ) <!-- endif --></th>
 							</tr>
 							<tr>
 								<th class="taC" width="150">发票抬头</th>
@@ -91,7 +91,7 @@
 						<table class="table table-bordered table-condensed">
 							<tbody>
 							<tr>
-								<th colspan="4" class="taC">增值税专用发票</th>
+								<th colspan="4" class="taC">增值税专用发票 <!-- if {{invoiceDetail.invoiceForm}}==1 --> ( <span class="colRed">电子发票</span> ) <!-- endif --></th>
 							</tr>
 							<tr>
 								<th class="taC" width="150">单位名称</th><td>{{invoiceDetail.invoiceCompany}}</td>

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

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

+ 3 - 1
protected/view/admin/invoicePaper.html

@@ -28,7 +28,8 @@
 			</div>
 			<div class="adminContent autoHeight">
 				<legend>
-				纸质发票</legend>
+				纸质发票
+				<a href="/invoiceElectronic">电子发票</a></legend>
 				<div class="demandCate">
 				
 				<form action="/invoicePaper" id="iaa" method="get" >
@@ -196,6 +197,7 @@ $(document).ready( function () {
                    "status": '{{status}}',
                    'invoiceType':'{{invoiceType}}',
                    'date':'{{dateString}}',
+                   'invoiceForm':'0',
                  } );
                }
         }

+ 5 - 5
protected/view/menu.html

@@ -18,9 +18,11 @@
 <!-- endif -->
 
 <!-- if isShowMenu('BUILD') -->
-<li data-placement="right" data-toggle="ctooltip" data-original-title="建筑计价">
-    <a href="/building" class="icon- <!-- if {{memu}}=="building" --> selected <!-- endif -->">e</a>
+
+<li data-placement="right" data-toggle="ctooltip"  data-original-title="云版管理">
+<a href="/cloud/curing/edition" class="icon- <!-- if {{memu}}=="buildActivation" --> selected <!-- endif -->">e</a>
 </li>
+
 <!-- endif -->
 
 <!-- if isShowMenu('RECEIPTS') -->
@@ -35,9 +37,7 @@
 </li>
 <!-- endif -->
 
-<li data-placement="right" data-toggle="ctooltip"  data-original-title="云版管理">
-<a href="/cloud/curing/edition" class="icon- <!-- if {{memu}}=="buildActivation" --> selected <!-- endif -->">D</a>
-</li>
+
 
 <!-- if isShowMenu('HR') -->
 <li data-placement="right" data-toggle="ctooltip" <!-- if isHRNew() --> class="news" <!-- endif --> data-original-title="人资管理">