@@ -247,7 +247,7 @@ class Cash
if ($account_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' => $v['aid'], 'where_mid' => $v['mid'], 'where_status' => 2));
- if ($cash) {
+ if ($cash && $cash['total'] > 0) {
$update = array();
$update['where_id'] = $v['id'];
$update['daijiaofu'] = $v['daijiaofu'] - $cash['total'];