|
@ -30,8 +30,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
[Route("api/settleaccount/[controller]/[action]")]
|
|
|
[Route("api/settleaccount/[controller]/[action]")]
|
|
|
public class PUB_BA_SERVICE : BA_SERVICE |
|
|
public class PUB_BA_SERVICE : BA_SERVICE |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private readonly INormalEfCoreRepository<PriceList, Guid> _priceRepository; |
|
|
private readonly INormalEfCoreRepository<PriceList, Guid> _priceRepository; |
|
|
private readonly INormalEfCoreRepository<PriceListBJ, Guid> _pricebjRepository; |
|
|
private readonly INormalEfCoreRepository<PriceListBJ, Guid> _pricebjRepository; |
|
|
private readonly ADJ_SERVICE _adjservice; |
|
|
private readonly ADJ_SERVICE _adjservice; |
|
@ -143,11 +141,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
{ |
|
|
{ |
|
|
priceList = _priceRepository.ToList();//价格单
|
|
|
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) }); |
|
|