|
@@ -620,7 +620,7 @@ class Order
|
|
|
|
|
|
$button = $this->show_button($process, $info, $role, $parent_member);
|
|
|
|
|
|
- if (($info['status'] == 3 || $info['status'] == 4) && $info['agent_cash'] > 0) {
|
|
|
+ if (($info['status'] == 3 || $info['status'] == 4) && $info['agent_cash'] >= 0) {
|
|
|
|
|
|
if (isset($process[3]) && $process[3]) {
|
|
|
$process[3]['type'] = explode(',', $process[3]['type']);
|
|
@@ -1311,9 +1311,11 @@ class Order
|
|
|
} elseif ($v['type'] == 2) {
|
|
|
$card = Dever::db('card/info')->find($v['type_id']);
|
|
|
if ($card['create_type'] == 3) {
|
|
|
+ $card['value'] = round($info['price']*($v['num']/100), 2);
|
|
|
$v['num'] = $v['num'] . '%';
|
|
|
} else {
|
|
|
$v['num'] = $v['num'] * $t;
|
|
|
+ $card['value'] = $card['value'] * $v['num'];
|
|
|
}
|
|
|
|
|
|
$table['body'][] = array('电子券', $card['name'], $card['value'], $v['num']);
|