亿通账单,功能微调:

dev
ddlucky 5 months ago
parent a5b7dbbefc
commit 86b2dbae74

@ -186,7 +186,7 @@ namespace JobCreateFee
var newbs = new D7BS();
newbs.BSNO = "";
var strSql = new StringBuilder();
strSql.Append("SELECT TOP 1 BSNO,CORPID, CUSTOMERNAME,FEESTATUS,ISCANCEL,isnull((select top 1 CTNALL from op_ctn where bsno=op_seae.BSNO and CTNALL like '20%'),'') CTN20,isnull((select top 1 CTNALL from op_ctn where bsno=op_seae.BSNO and CTNALL like '40%'),'') CTN40 from op_seae where MBLNO like '" + MBLNO + "%'");
strSql.Append("SELECT TOP 1 BSNO,CORPID, CUSTOMERNAME,FEESTATUS,ISCANCEL,isnull((select top 1 CTNALL from op_ctn where bsno=op_seae.BSNO and CTNALL like '20%'),'') CTN20,isnull((select top 1 CTNALL from op_ctn where bsno=op_seae.BSNO and CTNALL like '40%'),'') CTN40 from op_seae where MBLNO like '" + MBLNO + "%' and isnull(ISCANCEL,'0')='0' ");
if (!string.IsNullOrWhiteSpace(YTD7Condition))
{
strSql.Append(" and " + YTD7Condition);
@ -209,6 +209,31 @@ namespace JobCreateFee
newbs.CORPID = row["CORPID"].ToString();
}
}
else {
strSql = new StringBuilder();
strSql.Append("SELECT TOP 1 BSNO,CORPID, CUSTOMERNAME,FEESTATUS,ISCANCEL,isnull((select top 1 CTNALL from op_ctn where bsno=op_seae.BSNO and CTNALL like '20%'),'') CTN20,isnull((select top 1 CTNALL from op_ctn where bsno=op_seae.BSNO and CTNALL like '40%'),'') CTN40 from op_seae where MBLNO like '" + MBLNO + "%' ");
if (!string.IsNullOrWhiteSpace(YTD7Condition))
{
strSql.Append(" and " + YTD7Condition);
}
adapter.Fill(table);
BSNO = "";
if (table.Rows.Count > 0)
{
foreach (DataRow row in table.Rows)
{
newbs.BSNO = row["BSNO"].ToString();
newbs.CUSTOMERNAME = row["CUSTOMERNAME"].ToString();
newbs.FEESTATUS = row["FEESTATUS"].ToString() == "True" ? true : false;
newbs.ISCANCEL = row["ISCANCEL"].ToString() == "1" ? true : false;
newbs.CTN20 = row["CTN20"].ToString();
newbs.CTN40 = row["CTN40"].ToString();
newbs.CORPID = row["CORPID"].ToString();
}
}
}
return newbs;
@ -500,7 +525,11 @@ namespace JobCreateFee
//newfee.EXCHANGERATE = 1;
//newfee.FEENAME = "小票费";
var newfee = ChFeeHelper.getChFee(YTSumFee.ENTEROPERATOR, YTSumFee.BSNO, feeCustName, 2, "小票费", YTSumFee.fee_amount, YTSumFee.CTN, YTSumFee.fee_count, "", "");
//20240708 小票费价格固定为1元 票数依此计算
var newfee = ChFeeHelper.getChFee(YTSumFee.ENTEROPERATOR, YTSumFee.BSNO, feeCustName, 2, "小票费", YTSumFee.fee_amount, YTSumFee.CTN, YTSumFee.fee_amount, "", "");
newfee.CUSTOMERTYPE = "其他";
newfee.INPUTMODE = "导入亿通账单";
ChFeeHelper.setTax(ref newfee);

Loading…
Cancel
Save