dever 3 년 전
부모
커밋
7b7162ab4b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      service/option/lib/Cash.php

+ 1 - 0
service/option/lib/Cash.php

@@ -246,6 +246,7 @@ class Cash
                 foreach ($account_cash as $k => $v) {
                     $cash = Dever::db('option/bill_jiaofu')->getTotal(array('where_end' => $info['jiaofu_date'], 'where_type' => $v['type'], 'where_aid' => $info['aid'], 'where_status' => 2));
                     if ($cash) {
+                        $update = array();
                         $update['where_id'] = $v['id'];
                         $update['daijiaofu'] = $v['daijiaofu'] - $cash['total'];
                         $update['jiaofu'] = $v['jiaofu'] + $cash['total'];