Browse Source

下單時添加賬單信息

Dev
alina 2 years ago
parent
commit
da8d5a0133
  1. 27
      EuroTran/EasyBL.WEBAPP/ShowEasy/BookingMaintain_UpdService.cs
  2. 21
      EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs

27
EuroTran/EasyBL.WEBAPP/ShowEasy/BookingMaintain_UpdService.cs

@ -114,21 +114,18 @@ namespace EasyBL.WEBAPP.WSM
if (iRel > 0)
{
if (sSupplierStatus == "01") {
//當時確認訂單后,需要產生一筆賬單資料
var PayPayment = new SETB_SAL_Payment();
PayPayment.PaymentID = Guid.NewGuid().ToString();
PayPayment.BookingID = sBookingID;
PayPayment.PaymentNo = sBookingNo + "-01";
PayPayment.PaymentMethod = sPayType;
PayPayment.CreateDate = DateTime.Now;
PayPayment.ModifyDate = DateTime.Now;
iRel = db.Insertable(PayPayment).ExecuteCommand();
}
//if (sSupplierStatus == "01") {
// //當時確認訂單后,需要產生一筆賬單資料
// var PayPayment = new SETB_SAL_Payment();
// PayPayment.PaymentID = Guid.NewGuid().ToString();
// PayPayment.BookingID = sBookingID;
// PayPayment.PaymentNo = sBookingNo + "-01";
// PayPayment.PaymentMethod = sPayType;
// PayPayment.CreateDate = DateTime.Now;
// PayPayment.ModifyDate = DateTime.Now;
// iRel = db.Insertable(PayPayment).ExecuteCommand();
//}
//確認 后給會員發信息講已確認
var saDataList = db.Queryable<SETB_SAL_BookingOnline, SETB_CMS_Member>((t1, t2) => new object[] {

21
EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs

@ -1113,13 +1113,28 @@ namespace EasyBL.WEBAPP.ShowEasy
rsBooking.LangType = Booking.LangType ?? "zh-TW";
rsBooking.OrgID = sORIGID;
rsBooking.CreateDate = DateTime.Now;
var iRel = db.Insertable(rsBooking).ExecuteCommand();
if (iRel > 0)
{
//取得聯絡人的Email
//當時確認訂單后,需要產生一筆賬單資料
var PayPayment = new SETB_SAL_Payment();
PayPayment.PaymentID = Guid.NewGuid().ToString();
PayPayment.BookingID = rsBooking.BookingID;
PayPayment.PaymentNo = rsBooking.BookingNo + "-01";
PayPayment.PaymentMethod = rsBooking.PayType;
PayPayment.PaymentTerms = "1";
if (rsBooking.PayType=="3") {
//現場付款
PayPayment.PaymentDate = DateTime.Now;
}
PayPayment.Amount =float.Parse(rsBooking.TotalPrice);
PayPayment.CreateDate = DateTime.Now;
PayPayment.ModifyDate = DateTime.Now;
iRel = db.Insertable(PayPayment).ExecuteCommand();
var objONSiteBaseInfo = db.Queryable<SETB_PDT_ONSiteBaseInfo>()
//搜尋條件

Loading…
Cancel
Save