Browse Source

非库存品转库存品,类型维护

wufeng 2 years ago
parent
commit
9860c51227
2 changed files with 3 additions and 1 deletions
  1. 1 0
      app/admin/controller/AfterChild.php
  2. 2 1
      app/admin/controller/ReorderChild.php

+ 1 - 0
app/admin/controller/AfterChild.php

@@ -249,6 +249,7 @@ class AfterChild extends Base
                             if (!empty($good)) {
                                 Db::name('good_basic')->insert(array_merge($good, [
                                     'id' => null,
+                                    'is_stock' => 1,
                                     'spuCode' => $spuCode,
                                     'addtime' => $date,
                                     'updatetime' => $date,

+ 2 - 1
app/admin/controller/ReorderChild.php

@@ -362,7 +362,8 @@ class ReorderChild extends Base
                                     'spuCode' => $spuCode,
                                     'addtime' => $date,
                                     'updatetime' => $date,
-                                    'status'=>0
+                                    'status'=>0,
+                                    'is_stock' => 1,
                                 ]));
                             }
                         } else {