hanxuntao 1 month ago
parent dfb9bff088
commit 9354ade441

@ -674,7 +674,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_bankdata
if (Bankdata.TRANSTYPE == "来账")
{
var addinvlist = ChsettlementDAL.GetRecvInvAllDataList("BILLNO in (select BILLNO FROM ch_fee_bankdata_fitdetail WHERE LINKGID='" + Bankdata.GID + "')", userid, username, companyid);
var addinvlist = ChsettlementDAL.GetRecvInvAllDataList("cm.BILLNO in (select BILLNO FROM ch_fee_bankdata_fitdetail WHERE LINKGID='" + Bankdata.GID + "')", userid, username, companyid);
var head = new ChSettlement();

@ -4938,7 +4938,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Settlement
var STLINVPART = MsSysParamSetDAL.GetData("PARAMNAME='STLINVPART'");
if (STLINVPART.PARAMVALUE != "1")
{
strSql.Append(" and BILLNO NOT IN (SELECT distinct BILLNO FROM ch_fee_do where EXISTS ");
strSql.Append(" and cm.BILLNO NOT IN (SELECT distinct BILLNO FROM ch_fee_do where EXISTS ");
strSql.Append(" (select 1 from ch_fee f where ch_fee_do.FEEID=f.GID and f.FEESTATUS IN (0,8,9) ");
strSql.Append(" and (f.SETTLEMENT<>0 or f.ORDERAMOUNT<>0 or ISNULL(f.ORDERSETTLEMENT,0)<>0) )) ");
}

Loading…
Cancel
Save