caipin 5 years ago
parent
commit
f6da6ccbcb

+ 1 - 0
protected/controller/InvoiceController.php

@@ -4312,6 +4312,7 @@ class InvoiceController extends DooController {
 			// 修改 绑定状态改为 金额
 		$invoiceReceivables = new invoiceReceivables ();
 		
+		//有BUG-需修改
 		$invoicePrice = $detail ['invoicePrice'] + $detailM ['bindPrice'];
 		if ($detailM ['receivablesPrice'] > $invoicePrice) {
 			$item = array (

+ 2 - 3
protected/controller/MainController.php

@@ -1444,8 +1444,7 @@ class MainController extends DooController {
 			$longle->responsible = $this->staff [0] ['username'];
 			
 			// 记录锁状态
-			
-			$longle->statuslog = "1,2";
+			//$longle->statuslog = "1,2";
 			
 			$longle->update ();
 			
@@ -3312,7 +3311,7 @@ class MainController extends DooController {
 			$othstr = " cid in (" . $this->staff [0] ['cid'] . ")";
 		
 		$data ['reLongle'] = $longle->count ( array (
-				'where' => $othstr . '  and status=1' 
+				'where' => $othstr . '  and (status=1 or responsible="")' 
 		) );
 
         $data['lidKey']=$lidKey;

+ 1 - 1
protected/model/longle.php

@@ -76,7 +76,7 @@ class longle extends DooModel {
 		else 
 			$str= " cid in (".$cid." )";
 			
-		return $this->find ( array ('where' => $str." and status=".$status, 'asArray' => TRUE ) );
+		return $this->find ( array ('where' => $str." and (status=".$status." or responsible='')", 'asArray' => TRUE ) );
 	}
 	
 	public function getLongleBykeynum($keynum){