diff --git a/app/admin/lists/warehouse_order/WarehouseOrderLists.php b/app/admin/lists/warehouse_order/WarehouseOrderLists.php index df831b171..01d3774df 100644 --- a/app/admin/lists/warehouse_order/WarehouseOrderLists.php +++ b/app/admin/lists/warehouse_order/WarehouseOrderLists.php @@ -76,6 +76,8 @@ class WarehouseOrderLists extends BaseAdminDataLists implements ListsSearchInter } if ($item->supplier_id) { $item->supplier_name = Supplier::where('id', $item->supplier_id)->value('mer_name'); + }else{ + $item->supplier_name = ''; } }) ->toArray(); diff --git a/app/api/lists/purchase_product_offer/PurchaseProductOfferLists.php b/app/api/lists/purchase_product_offer/PurchaseProductOfferLists.php index 1edf7275f..ecaa78410 100644 --- a/app/api/lists/purchase_product_offer/PurchaseProductOfferLists.php +++ b/app/api/lists/purchase_product_offer/PurchaseProductOfferLists.php @@ -27,7 +27,7 @@ class PurchaseProductOfferLists extends BaseApiDataLists implements ListsSearchI public function setSearch(): array { return [ - '=' => [], + '=' => ['buyer_confirm'], ]; }