shish 2 ani în urmă
părinte
comite
71be0d95a6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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);
                 } else {
                     $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);