From 63605accc0d4b2d12569fbd0db7197e1327446d6 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Wed, 25 Feb 2026 13:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/InvItemService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/service/InvItemService.php b/app/common/service/InvItemService.php index 7bd19b4..4048d1f 100644 --- a/app/common/service/InvItemService.php +++ b/app/common/service/InvItemService.php @@ -145,7 +145,7 @@ class InvItemService $uid = $request->user->uid; $name = $uid ? User::where('id', $uid)->value('name') : ''; $item = InvItem::where('id', $data['id'])->first(); - $change_qty = $data['change_qty'] - $item['stock_qty']; + $change_qty = $data['stock_qty'] - $item['stock_qty']; // 记录库存变化日志 $this->recordStockLog([ 'item_id' => $data['id'],