|
@@ -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'];
|