From 1ae2ab7b60ef374c77eebc08d63759a98f625066 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 15 三月 2024 10:10:43 +0800
Subject: [PATCH] crm查询采购信息

---
 proto/purchase_wms/server.go |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/proto/purchase_wms/server.go b/proto/purchase_wms/server.go
index e8ee1a4..f7339e7 100644
--- a/proto/purchase_wms/server.go
+++ b/proto/purchase_wms/server.go
@@ -159,6 +159,9 @@
 		info.SupplierName = p.Supplier.Name
 		info.Amount = p.Quantity.IntPart()
 		info.Status = int64(p.Status)
+		if p.Status == purchase.OrderStatusStored || p.Status == purchase.OrderStatusCompleted {
+			info.FinishAmount = info.Amount
+		}
 		for _, pp := range pps {
 			if int(p.ID) == pp.PurchaseId {
 				info.ProductId = pp.Product.Number

--
Gitblit v1.8.0