From 6bd0d63edace62af469ddb690783b27e11443614 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 15 十一月 2023 19:29:31 +0800
Subject: [PATCH] 销售订单变更单:审核时需要检验源单是否为审核状态,不是则审核失败

---
 WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs b/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
index 20fcf41..d204376 100644
--- a/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
+++ b/WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
@@ -331,16 +331,19 @@
                 foreach (Model.ClsKf_SellOutBillSub oItemSub in ls)
                 {
                     i++;
-                    oItemSub.HSourceEntryID = 0;
-                    oItemSub.HSourceInterID = 0;
+
                     oItemSub.HEntryID = i;
+                    //oItemSub.HSourceEntryID = 0;
+                    //oItemSub.HSourceInterID = 0;
+                    //oItemSub.HSourceBillNo = "";
+                    //oItemSub.HSourceBillType = "";
+                    oItemSub.HRelationQty = 0;
+                    oItemSub.HRelationMoney = 0;
+
+                    
                     // DBUtility.ClsPub.isDate(DateTime.Now);
                     oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now);
                     oItemSub.HCloseType = false;
-                    oItemSub.HSourceBillNo = "";
-                    oItemSub.HSourceBillType = "";
-                    oItemSub.HRelationQty = 0;
-                    oItemSub.HRelationMoney = 0;
                     oItemSub.HCloseMan = "";
                     //oItemSub.HRemark = "";
                     oBill.DetailColl.Add(oItemSub);

--
Gitblit v1.9.1