diff --git a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php index 8699bdc60..0d5801906 100644 --- a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php +++ b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php @@ -190,9 +190,9 @@ class BeforehandOrderLogic extends BaseLogic $total_prices = $v['total_price']; $v['uid'] = $params['user_id']; $v['store_id'] = $params['store_id']; - $find = StoreBranchProduct::where('store_id', $params['store_id'])->where('product_id', $v['product_id'])->find(); + $find = StoreBranchProduct::where('store_id', $params['store_id'])->where('product_id', $v['product_id'])->withTrashed()->find(); if (!$find) { - $product = StoreProduct::where('id', $v['product_id'])->find(); + $product = StoreProduct::where('id', $v['product_id'])->withTrashed()->find(); $find = StoreProductLogic::ordinary($product, $params['store_id'], 0, $product); }