From 9409365e3460341bab2d931d272c431b5bf8a400 Mon Sep 17 00:00:00 2001 From: yuyubo <1870149533@qq.com> Date: Wed, 18 Jun 2025 11:48:48 +0800 Subject: [PATCH] 11 --- Pilot_KD_Parino/SQL/SqlManage_yuyubo.cs | 2 +- Pilot_KD_Parino/Sal_Order/PushSaleBillPlugIn.cs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Pilot_KD_Parino/SQL/SqlManage_yuyubo.cs b/Pilot_KD_Parino/SQL/SqlManage_yuyubo.cs index d0a624d..99962e0 100644 --- a/Pilot_KD_Parino/SQL/SqlManage_yuyubo.cs +++ b/Pilot_KD_Parino/SQL/SqlManage_yuyubo.cs @@ -38,7 +38,7 @@ namespace Pilot_KD_Parino.SQL FROM T_AR_RECEIVEBILL A WHERE A.FDOCUMENTSTATUS = 'C' AND A.FISINIT != '1' - AND A.FRECAMOUNTFOR >= A.F_AMOUNT {where} + AND A.FRECAMOUNTFOR > A.F_AMOUNT {where} order by FCONTACTUNIT,A.FID desc ", FORGID); return DBServiceHelper.ExecuteDynamicObject(ctx, sql.ToString(), null, null, CommandType.Text, null); } diff --git a/Pilot_KD_Parino/Sal_Order/PushSaleBillPlugIn.cs b/Pilot_KD_Parino/Sal_Order/PushSaleBillPlugIn.cs index d4e3f4f..7055b6c 100644 --- a/Pilot_KD_Parino/Sal_Order/PushSaleBillPlugIn.cs +++ b/Pilot_KD_Parino/Sal_Order/PushSaleBillPlugIn.cs @@ -275,10 +275,14 @@ namespace Pilot_KD_Parino.Sal_Order orderSheet["F_SFHW"] = "2"; //this.View.ShowMessage("更新了1"); - + if (beiHuoName3 == "香港派诺") + { + beiHuoName3 = "派诺科技(香港)有限公司"; + } string sqltemp1 = $@"/*dialect*/ SELECT FUseOrgId,a.FNUMBER,b.FNAME,a.FCUSTID FROM T_BD_CUSTOMER a LEFT JOIN T_BD_CUSTOMER_L b ON a.FCUSTID=b.FCUSTID WHERE FUseOrgId={SupplierId_Id} AND FNAME LIKE '%{beiHuoName3}%' "; + Logger.Error("客户组织",sqltemp1, new Exception()); var keHuList = DBServiceHelper.ExecuteDynamicObject(this.Context, sqltemp1, null, null, CommandType.Text, null); if (keHuList != null && keHuList.Count > 0) @@ -295,7 +299,7 @@ namespace Pilot_KD_Parino.Sal_Order { supplierObj = keHuList.Where(t => t["FNAME"].ToString() == "珠海派诺科技股份有限公司").FirstOrDefault(); - } + } else { supplierObj = keHuList.FirstOrDefault();