Commit 8f6b30ab authored by 吴春's avatar 吴春

1

parent 857a9ee6
......@@ -243,7 +243,7 @@ namespace Edu.Model.Entity.Sell
public int TotalChapterNo { get; set; }
/// <summary>
/// 课时单价 (应收总金额-教材费-课件费)/总课时 2024-08-26 add by:W
/// 课时单价 (应收总金额-优惠-教材费-课件费)/总课时 2024-08-26 add by:W
/// </summary>
public decimal ClassUnitPrice { get; set; }
......
......@@ -2201,7 +2201,6 @@ namespace Edu.Module.Course
{ nameof(RB_Order_ViewModel.UpOrderId),demodel.UpOrderId},
{ nameof(RB_Order_ViewModel.CustomerId),demodel.CustomerId},
{ nameof(RB_Order_ViewModel.CourseConsultantId),demodel.CourseConsultantId},
{ nameof(RB_Order_ViewModel.TextbookFee),demodel.TextbookFee},
{ nameof(RB_Order_ViewModel.CoursewareFee),demodel.CoursewareFee},
};
......@@ -2226,7 +2225,7 @@ namespace Edu.Module.Course
}
else
{
item.ClassUnitPrice = Math.Round(((demodel.PreferPrice - demodel.TextbookFee - demodel.CoursewareFee) / demodel.TotalClassHours), 6);//课时单价 (应收总金额-教材费-课件费)/总课时
item.ClassUnitPrice = Math.Round(((demodel.PreferPrice- demodel.DiscountMoney - demodel.TextbookFee - demodel.CoursewareFee) / demodel.TotalClassHours), 6);//课时单价 (应收总金额-教材费-课件费)/总课时
decimal validClassHours = Math.Round(((demodel.Income + demodel.PlatformTax - demodel.Refund - demodel.TextbookFee - demodel.CoursewareFee) / item.ClassUnitPrice), 2);
item.ValidClassHours = validClassHours < item.CompleteHours ? item.CompleteHours : validClassHours;//有效课时 = (实收+手续费-退款 - 课件费 - 教材费)/课时单价 ; 如果 有效课时 < 已完成课时 ,有效课时 = 已完成课时
}
......@@ -2678,7 +2677,7 @@ namespace Edu.Module.Course
WeChatNo = item.WeChatNo,
TotalChapterNo = MaxChapterNo,
StudentId = item.StuId,
ClassUnitPrice = Math.Round(((demodel.PreferPrice - demodel.TextbookFee - demodel.CoursewareFee) / demodel.TotalClassHours), 6),//课时单价 (应收总金额-教材费-课件费)/总课时
ClassUnitPrice = Math.Round(((demodel.PreferPrice - demodel.DiscountMoney - demodel.TextbookFee - demodel.CoursewareFee) / demodel.TotalClassHours), 6),//课时单价 (应收总金额-教材费-课件费)/总课时
};
SetOrderGuestInfo(guestModel, out string Nmessage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment