This commit is contained in:
2025-06-18 11:48:48 +08:00
parent c7a1d24ce9
commit 9409365e34
2 changed files with 7 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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();