Your Name 2 years ago
parent
commit
7f9ca8850f
2 changed files with 4 additions and 0 deletions
  1. 1 0
      service/bill/database/tixian.php
  2. 3 0
      service/bill/lib/Manage.php

+ 1 - 0
service/bill/database/tixian.php

@@ -6,6 +6,7 @@ $status = array
     1 => array('name' => '已审核待发放', 'style' => 'font-weight:bold;color:green'),
     //2 => array('name' => '已审核待发放', 'style' => 'font-weight:bold;color:green'),
     2 => array('name' => '已发放', 'style' => 'font-weight:bold;color:#CD3700'),
+    3 => array('name' => '已作废','style' => 'font-weight:bold;color:#CD3700'),
 );
 
 $cash_status = array

+ 3 - 0
service/bill/lib/Manage.php

@@ -82,6 +82,9 @@ class Manage
                         $where['where_id'] = $info['mid'];
                         $where['cash'] = -1*$tixian['ycash'];
                         Dever::db('agent/member')->upCash($where);
+                        $update['where_id'] = $tixian['id'];
+                        $update['status'] = 3;
+                        Dever::db('bill/tixian')->update($update);
                     }
                 }
             }