diff --git a/Pilot_KD_Parino/QPHY_AutoWrireRecord/FUpdateAmount.cs b/Pilot_KD_Parino/QPHY_AutoWrireRecord/FUpdateAmount.cs index f4eef9b..45e23c0 100644 --- a/Pilot_KD_Parino/QPHY_AutoWrireRecord/FUpdateAmount.cs +++ b/Pilot_KD_Parino/QPHY_AutoWrireRecord/FUpdateAmount.cs @@ -31,9 +31,11 @@ namespace Pilot_KD_Parino.QPHY_AutoWrireRecord var Billobj = rows.DataEntity; //获取销售订单核销金额数据 SqlManage.FUpdateSalOrderAmount(this.Context, Convert.ToString(Billobj["Id"])); - //int id = Convert.ToInt32(Billobj["Id"]); - + // string sql6 = string.Format(@"/*dialect*/ + //EXEC FUpdateSalOrderAmount {0} ", Convert.ToString(Billobj["Id"])); + + //DBUtils.ExecuteDynamicObject(Context, sql6); string sql1 = string.Format(@"/*dialect*/Select B.FBILLNO2,B.FALLAMOUNT2 From T_AutoWrireRecord A JOIN T_AutoWrireRecordEntry B on A.FID = B.FID Where A.FID = '{0}'", Billobj["Id"]); diff --git a/Pilot_KD_Parino/SQL/SqlManage.cs b/Pilot_KD_Parino/SQL/SqlManage.cs index 1d540bd..a9374a9 100644 --- a/Pilot_KD_Parino/SQL/SqlManage.cs +++ b/Pilot_KD_Parino/SQL/SqlManage.cs @@ -1,5 +1,4 @@ using Kingdee.BOS; -using Kingdee.BOS.Log; using Kingdee.BOS.Orm.DataEntity; using Kingdee.BOS.ServiceHelper; using System; @@ -37,7 +36,6 @@ namespace Pilot_KD_Parino.SQL //定义SQL,调用物料视图 string sql = string.Format(@"/*dialect*/ EXEC FUpdateSalOrderAmount {0} ", FID); - Logger.Error("FUpdateSalOrderAmount", sql, new Exception()); //执行SQL DBServiceHelper.ExecuteDynamicObject(ctx, sql.ToString(), null, null, CommandType.Text, null); } diff --git a/反审核销记录单.sql b/反审核销记录单.sql index 92b08b2..045c7e8 100644 Binary files a/反审核销记录单.sql and b/反审核销记录单.sql differ diff --git a/更新核销金额.sql b/更新核销金额.sql index f8f231f..ad18be9 100644 --- a/更新核销金额.sql +++ b/更新核销金额.sql @@ -45,11 +45,11 @@ BEGIN INNER JOIN T_AR_RECEIVEBILL C ON C.FBILLNO = B.FBILLNO3 LEFT JOIN ( - SELECT FBILLNO3,SUM(CONVERT(decimal(18,2), FALLAMOUNT3)) AS '' FROM T_AutoWrireRecord Aa + SELECT FBILLNO3,SUM(CONVERT(DECIMAL(18,2), FALLAMOUNT3)) AS '' FROM T_AutoWrireRecord Aa INNER JOIN T_AutoWrireRecordEntry2 B ON Aa.FID = B.FID WHERE Aa.FID =@FID GROUP BY B.FBILLNO3 - ) d on d.FBILLNO3 =b.FBILLNO3 + ) d ON d.FBILLNO3 =b.FBILLNO3 WHERE a.FID =@FID ; end