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