rabin 2 years ago
parent
commit
985f70cf71
1 changed files with 10 additions and 7 deletions
  1. 10 7
      service/agent/lib/Soft_cash.php

+ 10 - 7
service/agent/lib/Soft_cash.php

@@ -29,7 +29,10 @@ Class Soft_cash
             // print_R($info);die;
             $update['where_id'] = $id;
             $update['set_mid'] = $info['id'];
-            $update['set_order_num'] = $this->getOrderId($id);
+            if (!$soft['order_num']) {
+                $update['set_order_num'] = $this->getOrderId($id);
+            }
+            
             if($cash){
                 $update['set_cash'] = $cash;
             }
@@ -85,6 +88,11 @@ Class Soft_cash
 	            }
         	}
             
+            if (!$audit) {
+                if ($soft['status'] == 4) {
+                    $update['status'] = 2;
+                }
+            }
             $ids=Dever::db('agent/soft_cash')->update($update);
         }
     }
@@ -245,12 +253,7 @@ Class Soft_cash
         $purl = Dever::url('project/database/update?project=agent&table=soft_cash&where_id='.$info['id'].'&audit=3&col=id,audit,audit_desc', 'manage');
         if (Dever::load('manage/auth')->checkFunc('agent.soft_cash', 'edit2', '驳回')) {
 	        if($info['status'] == 4){
-	        	$button[] = array
-	            (
-	                'type' => 'edit',
-	                'link' => $purl,
-	                'name' => '待财务终审',
-	            );
+	        	
 	        }
 	    }
         $button[] = array