|
@@ -656,7 +656,7 @@ class Order
|
|
|
$button = array();
|
|
|
$cstatus = ',cstatus,soft_price';
|
|
|
$soft_price = 0;
|
|
|
- if ($role['soft'] && $role['soft'] && $info['price'] > 0 && $info['status'] > 1) {
|
|
|
+ if ($role['soft'] && $info['price'] > 0 && $info['status'] > 1) {
|
|
|
//$cstatus = ',cstatus';
|
|
|
//$soft = '【<a href="" style="color:blue">拆分代理费</a>】';
|
|
|
if (strstr($role['soft'], '%')) {
|
|
@@ -665,7 +665,14 @@ class Order
|
|
|
}
|
|
|
$soft_price = $role['soft'];
|
|
|
}
|
|
|
-
|
|
|
+ $option_price = 0;
|
|
|
+ if($role['option_price'] && $info['price'] > 0 && $info['status'] > 0){
|
|
|
+ if(strstr($role['option_price'],'%')){
|
|
|
+ $role['option_price'] = str_replace('%','',$role['option_price']);
|
|
|
+ $role['option_price'] = $info['price'] * ($role['option_price']/100);
|
|
|
+ }
|
|
|
+ $option_price = $role['option_price'];
|
|
|
+ }
|
|
|
if (Dever::load('manage/auth')->checkFunc('agent.order', 'edit', '备注')) {
|
|
|
$purl = Dever::url('project/database/update?project=agent&table=order&where_id='.$info['id'].'&col=admin_desc', 'manage');
|
|
|
$button[] = array
|
|
@@ -730,7 +737,7 @@ class Order
|
|
|
$cstatus = ',prize_type';
|
|
|
}
|
|
|
}
|
|
|
- $purl = Dever::url('project/database/update?project=agent&table=order_process&order_id='.$info['id'].'&status=1&col=order_id,status,audit,price,option_price,desc'.$cstatus.'&price='.$info['price'].'&soft_price=' . $soft_price, 'manage');
|
|
|
+ $purl = Dever::url('project/database/update?project=agent&table=order_process&order_id='.$info['id'].'&status=1&col=order_id,status,audit,price,option_price,desc'.$cstatus.'&price='.$info['price'].'&soft_price=' . $soft_price.'&option_price='.$option_price, 'manage');
|
|
|
if (isset($process[1]) && $process[1]) {
|
|
|
$purl .= '&where_id=' . $process[1]['id'];
|
|
|
}
|