|
@@ -29,7 +29,10 @@ Class Soft_cash
|
|
|
// print_R($info);die;
|
|
|
$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);
|
|
|
}
|
|
|
}
|
|
@@ -183,7 +191,7 @@ Class Soft_cash
|
|
|
|
|
|
if($info['status'] == 3 ){
|
|
|
$member_goods = Dever::db('agent/member_agreement')->find($info['agreement_id']);
|
|
|
- if ($member_goods['sign']) {
|
|
|
+ if ($member_goods && $member_goods['sign']) {
|
|
|
$sign_pic = '<a href="'.$member_goods['sign'].'" target="_blank"><img src="'.$member_goods['sign'].'" width="100" /></a>';
|
|
|
} else {
|
|
|
$sign_pic = '暂无';
|
|
@@ -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
|