Commit 565657e6 authored by liudong1993's avatar liudong1993

1

parent 391a9e7f
......@@ -390,6 +390,16 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
OriginalFee += Math.Round(totalPrice, 2, MidpointRounding.AwayFromZero);
}
//会存在 积分全额抵扣情况
if (((result.Sum(x => x.FinanceType == 1 ? (x.Final_Price ?? 0) : (x.FreightMoney ?? 0))) - OriginalFee) == 0) {
record.FinanceId = 0;
record.IsFinanceAll = 0;
financeRecordRepository.Insert(record);
Helper.LogHelper.Write("暂无数据");
return false;
}
var detailList = result.Select(x => new
{
CostTypeId = x.FinanceType == 1 ? item.IncomeCostTypeId : (x.FinanceType == 2 ? item.FreightCostTypeId : item.InsuranceTypeId),
......
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