ソースを参照

fzp 发票超出金额处理

master
坤 梁 1年前
コミット
9d4be38f20
2個のファイルの変更4行の追加23行の削除
  1. +2
    -21
      DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs
  2. +2
    -2
      DigitalSchoolApi/Controllers/YKTTrabs.cs

+ 2
- 21
DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs ファイルの表示

@@ -88,27 +88,8 @@ namespace DigitalSchoolApi.Controllers
}
foreach (var stuorderEntity in stuorderlist)
{
//新老生判断
if (Convert.ToInt32(conn.ExecuteScalar(
"select count(1) from StuInfoFresh where StuNo='" + stuorderEntity.StuNo + "' and grade='" + stuorderEntity.YearNo.ToString().Substring(2) + "'")) > 0)
{
conn.Execute("update StuInfoFresh set PayFeeStatus='1' where StuNo='" + stuorderEntity.StuNo + "'");
if (Convert.ToInt32(conn.ExecuteScalar(
"select count(1) from StuInfoFresh where StuNo='" + stuorderEntity.StuNo + "' and grade='" + stuorderEntity.YearNo.ToString().Substring(2) + "' and IsInvoice=0 and PayFeeStatus='1' ")) > 0)
{
//开票
Task.Run(() => YKTTrabs.InvoiceEBillMethod(stuorderEntity.orderid, true));
}
}
else
{
conn.Execute("update StuInfoBasic_PayFee set PayStatus='1' where StuNo='" + stuorderEntity.StuNo + "' and PayYear='" + stuorderEntity.YearNo.ToString().Substring(2) + "'");
if (Convert.ToInt32(conn.ExecuteScalar("select count(1) from StuInfoBasic_PayFee where StuNo='" + stuorderEntity.StuNo + "' and PayYear='" + stuorderEntity.YearNo + "' and InvoiceStatus=0 and PayStatus='1'")) > 0)
{
//开票
Task.Run(() => YKTTrabs.InvoiceEBillMethod(stuorderEntity.orderid, false));
}
}
//开票
Task.Run(() => YKTTrabs.InvoiceEBillMethodTwo(stuorderEntity.orderid));
}
}
}


+ 2
- 2
DigitalSchoolApi/Controllers/YKTTrabs.cs ファイルの表示

@@ -1073,7 +1073,6 @@ namespace DigitalSchoolApi.Controllers
biParam.memo = "缴费年度:" + orderEntity.YearNo + ",学号:" + orderEntity.StuNo;
biParam.@operator = "林智慧";
biParam.reViewer = "陈劲华";
biParam.totalAmt = Convert.ToDouble(stuEnrollFeeOrderDetailList.Sum(x => x.YJAmount));// Convert.ToDouble(orderEntity.YJAmount);
biParam.noticeMode = "0";
List<InvoiceEBillItem> itemdetailList = new List<InvoiceEBillItem>();
foreach (var itemEntity in stuEnrollFeeOrderDetailList)
@@ -1083,9 +1082,10 @@ namespace DigitalSchoolApi.Controllers
itemdetail.itemName = itemEntity.ChargeItemName;
itemdetail.count = 1;
itemdetail.standard = Convert.ToDouble(itemEntity.YJAmount);
itemdetail.amt = Convert.ToDouble(itemEntity.YJAmount);
itemdetail.amt = Convert.ToDouble((itemEntity.SJAmount> itemEntity.YJAmount? itemEntity.YJAmount: itemEntity.SJAmount));
itemdetailList.Add(itemdetail);
}
biParam.totalAmt = Convert.ToDouble(itemdetailList.Sum(m=>m.amt));
biParam.itemDetail = itemdetailList;
//JsonConvert.SerializeObject(biParam)
using (IDbConnection conncore = new SqlConnection(_coresqlConnection))


読み込み中…
キャンセル
保存