From 438e9cf23ce53d875ba180f16ca3f5513a769910 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期六, 11 五月 2024 15:39:41 +0800
Subject: [PATCH] 销售出库单:下查功能

---
 WebAPI/Controllers/CGGL/Cg_PayableBillController.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/WebAPI/Controllers/CGGL/Cg_PayableBillController.cs b/WebAPI/Controllers/CGGL/Cg_PayableBillController.cs
index 32f81ee..f6dc975 100644
--- a/WebAPI/Controllers/CGGL/Cg_PayableBillController.cs
+++ b/WebAPI/Controllers/CGGL/Cg_PayableBillController.cs
@@ -151,6 +151,7 @@
                             return objJsonResult;
                         }
                     }
+
                     UserName = oItem.HMaker;  //鍒跺崟浜�
                     oItem.HBillType = "1114";
                     oItem.HBillSubType = "1114";
@@ -194,6 +195,7 @@
                 bool bResult;
                 if (refSav == "Add")
                 {
+                 
                     // bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
                     bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
                 }
@@ -335,6 +337,12 @@
 
                 oCN.BeginTran();
 
+                //搴斾粯鍗� 鍒犻櫎 鎾ら攢 閲囪喘鍏ュ簱鍗� 鍏宠仈鏁伴噺
+                oCN.RunProc("exec h_p_Cg_UpDateRelation_POStockInToPayable_Del " + HInterID);
+
+                //搴斾粯鍗� 鍒犻櫎 鎾ら攢 閲囪喘璁㈠崟 鍏宠仈鏁伴噺
+                oCN.RunProc("exec h_p_Cg_UpDateRelation_POOrderToPayable_Del " + HInterID);
+
                 oCN.RunProc("delete from Cg_PayableBillMain where HInterID = " + HInterID);
                 oCN.RunProc("delete from Cg_PayableSub where HInterID= " + HInterID);
 

--
Gitblit v1.9.1