Commit 6120ab6f authored by liudong1993's avatar liudong1993

1

parent bf4d5982
......@@ -5166,11 +5166,14 @@ namespace Edu.Module.Course
#endregion
var stuModel = stuTimeList.Where(x => x.OrderGuestId == item.GuestId).FirstOrDefault();
item.UseClassHours = (stuModel?.CurrentDeductionHours ?? 0);
item.Unit_Price = 0;
item.Unit_Price = guestModel?.ClassUnitPrice ?? 0;
item.UseCourseFee = 0;
if (item.TotalClassHours2 > 0)
{
item.Unit_Price = Math.Round(item.TotalCourseFee2 / item.TotalClassHours2, 6, MidpointRounding.AwayFromZero);//根据合同计算(包含优惠, 需减去课件费等)
if (item.Unit_Price <= 0)
{
item.Unit_Price = Math.Round(item.TotalCourseFee2 / item.TotalClassHours2, 6, MidpointRounding.AwayFromZero);//根据合同计算(包含优惠, 需减去课件费等)
}
item.UseCourseFee = Math.Round((Convert.ToDecimal(item.UseClassHours) / item.TotalClassHours2) * item.TotalCourseFee2, 6, MidpointRounding.AwayFromZero);
//if (item.TotalDiscountMoney2 > 0)
//{
......
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