|
@@ -290,6 +290,7 @@ class FinancialProducts extends Base
|
|
|
$product = $this->model->with(['catInfo', 'ProductStock'])->findOrEmpty($param['product_id']);
|
|
|
if ($product->isEmpty()) return error('商品数据不存在');
|
|
|
if ($product->is_combind == 1) return error('组合商品不允许盘点');
|
|
|
+ if ($product->basic_status ==2) return error('预估成本商品不允许盘点');
|
|
|
if ($param['check_type'] == 2) {
|
|
|
$isT = ProductFz::where(["fz_date" => $param['fz_date'], "company_code" => $product->buyer_code])->findOrEmpty();
|
|
|
if (!$isT->isEmpty() && $isT->status != 0) return error('该日期已封账,不允许再新增');
|
|
@@ -341,6 +342,7 @@ class FinancialProducts extends Base
|
|
|
$product = $this->model->with(['catInfo', 'ProductStock'])->findOrEmpty($item['product_id']);
|
|
|
if ($product->isEmpty()) return error($item['product_id'] . '商品数据不存在');
|
|
|
if ($product->is_combind == 1) return error($item['goodName'] . '组合商品不允许盘点');
|
|
|
+ if ($product->basic_status ==2) return error($item['goodName'] . '预估成本商品不允许盘点');
|
|
|
if ($item['check_type'] == 2) {
|
|
|
$isT = ProductFz::where(["fz_date" => $item['fz_date'], "company_code" => $product->buyer_code])->findOrEmpty();
|
|
|
if (!$isT->isEmpty() && $isT->status != 0) return error('该账期已封账,不允许再新增');
|