shish před 3 roky
rodič
revize
046fbfce06
1 změnil soubory, kde provedl 0 přidání a 2 odebrání
  1. 0 2
      app-ghs/controllers/ShopExtController.php

+ 0 - 2
app-ghs/controllers/ShopExtController.php

@@ -94,11 +94,9 @@ class ShopExtController extends BaseController
             $ext->save();
             $ext->save();
         }
         }
         if (isset($ext->wcPrintSn2) && !empty($ext->wcPrintSn2)) {
         if (isset($ext->wcPrintSn2) && !empty($ext->wcPrintSn2)) {
-            PurchaseOrderClass::updateByCondition(['mainId' => $this->mainId], ['wcPrintNum' => 2]);
             ShopExtClass::updateByCondition(['shopId' => $this->shopId], ['wcPrintNum' => 2]);
             ShopExtClass::updateByCondition(['shopId' => $this->shopId], ['wcPrintNum' => 2]);
         }
         }
         if (isset($ext->wcPrintSn3) && !empty($ext->wcPrintSn3)) {
         if (isset($ext->wcPrintSn3) && !empty($ext->wcPrintSn3)) {
-            PurchaseOrderClass::updateByCondition(['mainId' => $this->mainId], ['wcPrintNum' => 3]);
             ShopExtClass::updateByCondition(['shopId' => $this->shopId], ['wcPrintNum' => 3]);
             ShopExtClass::updateByCondition(['shopId' => $this->shopId], ['wcPrintNum' => 3]);
         }
         }
         if ($hasFail == 1) {
         if ($hasFail == 1) {