|
|
@ -216,6 +216,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
} |
|
|
|
|
|
|
|
[HttpPost] |
|
|
|
[UnitOfWork(false)] |
|
|
|
/// <summary>
|
|
|
|
/// 发票重开
|
|
|
|
/// </summary>
|
|
|
@ -286,12 +287,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
//var groupNumList = entitys.Select(p => new { p.GroupNum).Distinct().ToList();
|
|
|
|
//var notList = _notRepository.Where(p => gNumList.Contains(p.GroupNum)).ToList();//不能结算
|
|
|
|
var priceList = _priceRepository.ToList();//价格单
|
|
|
|
var errorList =await CheckInvoiceGenerationRules(entitys, priceList, inv.BusinessType); |
|
|
|
if (errorList.Count() > 0) |
|
|
|
{ |
|
|
|
return new JsonResult(new { Code = ApplicationConsts.ImportFailCode, Message = "请下载错误信息", fileName = await ExportErrorReportAsync(errorList) }); |
|
|
|
|
|
|
|
} |
|
|
|
//var errorList =await CheckInvoiceGenerationRules(entitys, priceList, inv.BusinessType);
|
|
|
|
//if (errorList.Count() > 0)
|
|
|
|
//{
|
|
|
|
//return new JsonResult(new { Code = ApplicationConsts.ImportFailCode, Message = "请下载错误信息", fileName = await ExportErrorReportAsync(errorList) });
|
|
|
|
//}
|
|
|
|
var dto1s = ObjectMapper.Map<List<BBAC_CAN_SA_DETAIL>, List<BBAC_CAN_SA_DETAIL_DTO>>(entitys); |
|
|
|
var q = from d in dto1s |
|
|
|
join p in priceList on d.LU equals p.LU |
|
|
|