|
@@ -29,7 +29,10 @@ Class Soft_cash
|
|
|
|
|
|
$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
|