Commit 3d6183d0 authored by liudong1993's avatar liudong1993

1

parent daf2289a
......@@ -3029,28 +3029,28 @@ namespace REBORN.Services.FinanceService
#endregion
#region 条件
if (model.FinanceType == 1 && model.MatchFrId == 0 && model.OtherType != 7 && model.Type == WFTempLateClassEnum.OUT && ((model.TCIDList != null && model.TCIDList.Any()) || (",55,61,66,67,".Contains("," + (model.OtherType ?? 0) + ",") && model.ReFinanceId2 == 3)
|| (model.OrderSource == OrderResourceEnum.Visia && model.OrderID > 0 && model.ReFinanceId2 == 3)) && !(",2,46,61,126,131,178,179,182,196,198,200,201,164,255,267,").Contains("," + (model.TemplateId ?? 0) + ",")
&& model.PayDate.HasValue && model.PayDate.Value <= Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2))
{
bool IsComfrt = true;
if (model.TCIDList != null && model.TCIDList.Any())
{
var pmodel = travel_PriceRepository.GetPriceListRepository(new RB_Travel_Price_Extend() { RB_Group_Id = userInfo.RB_Group_id, TCID = model.TCIDList.FirstOrDefault() }).FirstOrDefault();
if (pmodel != null && pmodel.LineID == 90)
{
IsComfrt = false;
}
}
else if (",55,61,66,67,".Contains("," + (model.OtherType ?? 0) + ",") && model.ReFinanceId2 == 3 && (userInfo.EmployeeId == 57 || userInfo.EmployeeId == 2822))
{
IsComfrt = false;
}
if (IsComfrt)
{
return ApiResult.Failed("预计付款日期必须大于等于" + DateTime.Now.AddDays(3).ToString("yyyy-MM-dd"));
}
}
//if (model.FinanceType == 1 && model.MatchFrId == 0 && model.OtherType != 7 && model.Type == WFTempLateClassEnum.OUT && ((model.TCIDList != null && model.TCIDList.Any()) || (",55,61,66,67,".Contains("," + (model.OtherType ?? 0) + ",") && model.ReFinanceId2 == 3)
// || (model.OrderSource == OrderResourceEnum.Visia && model.OrderID > 0 && model.ReFinanceId2 == 3)) && !(",2,46,61,126,131,178,179,182,196,198,200,201,164,255,267,").Contains("," + (model.TemplateId ?? 0) + ",")
// && model.PayDate.HasValue && model.PayDate.Value <= Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2))
//{
// bool IsComfrt = true;
// if (model.TCIDList != null && model.TCIDList.Any())
// {
// var pmodel = travel_PriceRepository.GetPriceListRepository(new RB_Travel_Price_Extend() { RB_Group_Id = userInfo.RB_Group_id, TCID = model.TCIDList.FirstOrDefault() }).FirstOrDefault();
// if (pmodel != null && pmodel.LineID == 90)
// {
// IsComfrt = false;
// }
// }
// else if (",55,61,66,67,".Contains("," + (model.OtherType ?? 0) + ",") && model.ReFinanceId2 == 3 && (userInfo.EmployeeId == 57 || userInfo.EmployeeId == 2822))
// {
// IsComfrt = false;
// }
// if (IsComfrt)
// {
// return ApiResult.Failed("预计付款日期必须大于等于" + DateTime.Now.AddDays(3).ToString("yyyy-MM-dd"));
// }
//}
if (!model.RB_Branch_Id.HasValue)
{
......
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