|
@@ -56,11 +56,18 @@ class Set
|
|
|
$result[$i]['min'] = $other['min'];
|
|
|
}
|
|
|
if (isset($other['total_num'])) {
|
|
|
+
|
|
|
if ($col == 'type_id') {
|
|
|
$result[$i]['total'] = $other['total_num'];
|
|
|
} else {
|
|
|
$result[$i]['total'] = $other['total_num'] - $other['sell_num'];
|
|
|
}
|
|
|
+ */
|
|
|
+ if (isset($other['sell_num'])) {
|
|
|
+ $result[$i]['total'] = $other['total_num'] - $other['sell_num'];
|
|
|
+ } else {
|
|
|
+ $result[$i]['total'] = $other['total_num'];
|
|
|
+ }
|
|
|
|
|
|
} else {
|
|
|
$result[$i]['total'] = $other['num'];
|
|
@@ -131,11 +138,18 @@ class Set
|
|
|
$children['min'] = $other_sku['min'];
|
|
|
}
|
|
|
if (isset($other_sku['total_num'])) {
|
|
|
+
|
|
|
if ($col == 'type_id') {
|
|
|
$children['total'] = $other_sku['total_num'];
|
|
|
} else {
|
|
|
$children['total'] = $other_sku['total_num'] - $other_sku['sell_num'];
|
|
|
}
|
|
|
+ */
|
|
|
+ if (isset($other_sku['sell_num'])) {
|
|
|
+ $children['total'] = $other_sku['total_num'] - $other_sku['sell_num'];
|
|
|
+ } else {
|
|
|
+ $children['total'] = $other_sku['total_num'];
|
|
|
+ }
|
|
|
|
|
|
|
|
|
} else {
|