mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
库存盘点修复
This commit is contained in:
parent
1b2481a6be
commit
ffe74fd672
@ -159,7 +159,7 @@ class GoodsCombinationController extends Controller
|
|||||||
$externalSkuId = $request->input('external_sku_id') ??
|
$externalSkuId = $request->input('external_sku_id') ??
|
||||||
GeneratorUtils::generateCombinationGoodNumber($request->combination_goods);
|
GeneratorUtils::generateCombinationGoodNumber($request->combination_goods);
|
||||||
$hasCodeSku = GoodsSku::query()->where("external_sku_id", $externalSkuId)->first();
|
$hasCodeSku = GoodsSku::query()->where("external_sku_id", $externalSkuId)->first();
|
||||||
if (!empty($hasCodeSku)) {
|
if (!empty($hasCodeSku) && $hasCodeSku->id != $request->input('id')) {
|
||||||
throw new \Exception("该组合商品编码已存在");
|
throw new \Exception("该组合商品编码已存在");
|
||||||
}
|
}
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user