shish 2 éve
szülő
commit
71be0d95a6
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app-ghs/controllers/PurchaseOrderController.php

+ 1 - 1
app-ghs/controllers/PurchaseOrderController.php

@@ -588,7 +588,7 @@ class PurchaseOrderController extends BaseController
                     $list[$ghsId]['num'] = bcadd($list[$ghsId]['num'], 1);
                     $list[$ghsId]['num'] = bcadd($list[$ghsId]['num'], 1);
                 } else {
                 } else {
                     $name = $ghsList[$ghsId] && $ghsList[$ghsId]['name'] ? $ghsList[$ghsId]['name'] : '未命名';
                     $name = $ghsList[$ghsId] && $ghsList[$ghsId]['name'] ? $ghsList[$ghsId]['name'] : '未命名';
-                    $list[$ghsId] = ['name' => $name, 'amount' => $actPrice, 'num' => 1];
+                    $list[$ghsId] = ['id' => $ghsId, 'name' => $name, 'amount' => $actPrice, 'num' => 1];
                 }
                 }
             }
             }
             $list = array_values($list);
             $list = array_values($list);