From 42e747988aa1bcdceda506c867b884ba0d1e0ca7 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 16 十一月 2023 13:38:28 +0800
Subject: [PATCH] 出入库明细查询修改

---
 controllers/product_controller.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/controllers/product_controller.go b/controllers/product_controller.go
index 35c9c98..054b4ca 100644
--- a/controllers/product_controller.go
+++ b/controllers/product_controller.go
@@ -575,7 +575,7 @@
 
 				locAmount, res := models.NewLocationProductAmountSearch().
 					SetProductId(v.ID).
-					SetLocationId(operation.ToLocationID).
+					SetLocationId(operation.FromLocationID).
 					FirstRes()
 				if res.Error != nil {
 					return err

--
Gitblit v1.8.0