From d09f804c71b452b9039e4e2d9512489814deea73 Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期四, 08 五月 2025 09:28:53 +0800
Subject: [PATCH] 添加日期

---
 Tiger.Business.WMS/Transaction/Yada/Print_BIZ_U9_ASN.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Tiger.Business.WMS/Transaction/Yada/Print_BIZ_U9_ASN.cs b/Tiger.Business.WMS/Transaction/Yada/Print_BIZ_U9_ASN.cs
index d252812..1a67a60 100644
--- a/Tiger.Business.WMS/Transaction/Yada/Print_BIZ_U9_ASN.cs
+++ b/Tiger.Business.WMS/Transaction/Yada/Print_BIZ_U9_ASN.cs
@@ -495,7 +495,7 @@
             try
             {
                 var reqType = input.Options["reqType"].ToString();
-                var order = await MainDB.Queryable<BIZ_U9_ASN>().Where(q => q.ORDER_NO == orderNo).Includes(q => q.Details, d => d._ItemInfos).IncludesAllFirstLayer().FirstAsync();
+                var order = await MainDB.Queryable<BIZ_U9_ASN>().Where(q => q.ORDER_NO == orderNo).Includes(q => q.Details, d => d._ItemInfos, e=> e.ExtInfo).IncludesAllFirstLayer().FirstAsync();
                 if (order.IsNullOrEmpty())
                 {
                     action.IsSuccessed = false;
@@ -535,14 +535,15 @@
                             rcvDTO = new()
                             {
                                 Supplier = new() { m_code = order.SUPP_CODE },
+                                BusinessDate = DateTime.Now,
                                 RcvDocType = new() { m_code = rcvDocType },
                                 RcvLines = finishNotSubmit.Select(q=> new RcvLine
                                 {
                                     ItemInfo = new() { m_itemCode = q.ITEM_CODE},
                                     Wh = new() { m_code = "10101" },
-                                    RcvLineLocations = new(){
+                                    RcvLineLocations = new(){ 
                                             new(){
-                                                Location = new(){ m_code= q.ItemInfo.DEFAULT_LOCATION},
+                                                Location = new(){ m_code= q.ItemInfo.DEFAULT_LOCATION??""},
                                                 LocationQtyTU = q.QTY,
                                             }
                                         },

--
Gitblit v1.9.3