dever 3 лет назад
Родитель
Сommit
3bcb19cd3a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/goods/lib/Set.php

+ 2 - 2
app/goods/lib/Set.php

@@ -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'];