From d91f181819984ed68d928bec6e926da6566e7a3f Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 05 七月 2024 14:53:02 +0800 Subject: [PATCH] 当操作为出库或调拨时,操作详情明细返回产品相应位置的实时库存 --- service/operation.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/service/operation.go b/service/operation.go index 0775865..733d84f 100644 --- a/service/operation.go +++ b/service/operation.go @@ -336,7 +336,7 @@ if locAmount.Amount.Equal(v.Amount) { continue } - if v.Amount.GreaterThan(locAmount.Amount) { + if v.Amount.GreaterThan(locAmount.Amount) { //todo 鏀规垚stockAmount inputDetails = append(inputDetails, &models.OperationDetails{ ProductId: v.ProductId, Amount: v.Amount.Sub(locAmount.Amount), -- Gitblit v1.8.0