From 59b24e5ebb3dd9ae399359dfe82abd8a31e36596 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 10 一月 2025 14:34:22 +0800
Subject: [PATCH] 优化获取旧WMS辅料仓库存方法

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs"
index 701cb7b..45245fd 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs"
@@ -156,7 +156,7 @@
                                 Unit = Unit,
                                 Status = StockStatusEmun.鍏ュ簱瀹屾垚.ObjToInt(),
                                 ProductionDate = ProduceData,
-                                EffectiveDate = ValidData ?? "1",
+                                EffectiveDate = ValidData ?? DateTime.Parse(ProduceData).AddYears(2).ToString("yyyy-MM-dd"),
                                 Remark = Standard,
                                 InboundOrderRowNo = MId,
                             };

--
Gitblit v1.9.3