|
@@ -123,7 +123,13 @@ class Set
|
|
|
$children['min'] = $other_sku['min'];
|
|
|
}
|
|
|
if (isset($other_sku['total_num'])) {
|
|
|
- $children['total'] = $other_sku['total_num'] - $other_sku['sell_num'];
|
|
|
+ if ($col == 'type_id') {
|
|
|
+ $children['total'] = $other_sku['total_num'];
|
|
|
+ } else {
|
|
|
+ $children['total'] = $other_sku['total_num'] - $other_sku['sell_num'];
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
} else {
|
|
|
$children['total'] = $other_sku['num'];
|
|
|
}
|