|
@@ -55,7 +55,7 @@ class Set
|
|
|
$result[$i]['min'] = $other['min'];
|
|
|
}
|
|
|
if (isset($other['total_num'])) {
|
|
|
- if ($col == 'type_id' && $table != 'agent/member_goods') {
|
|
|
+ if ($col == 'type_id') {
|
|
|
$result[$i]['total'] = $other['total_num'];
|
|
|
} else {
|
|
|
$result[$i]['total'] = $other['total_num'] - $other['sell_num'];
|
|
@@ -128,7 +128,7 @@ class Set
|
|
|
$children['min'] = $other_sku['min'];
|
|
|
}
|
|
|
if (isset($other_sku['total_num'])) {
|
|
|
- if ($col == 'type_id' && $table != 'agent/member_goods') {
|
|
|
+ if ($col == 'type_id') {
|
|
|
$children['total'] = $other_sku['total_num'];
|
|
|
} else {
|
|
|
$children['total'] = $other_sku['total_num'] - $other_sku['sell_num'];
|