|
|
@ -63,7 +63,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
INormalEfCoreRepository<BBAC_NOT_SA_DETAIL, Guid> notRepository, |
|
|
|
INormalEfCoreRepository<PriceList, Guid> priceRepository, |
|
|
|
BBAC_CAN_SA_MNG bbacMng, |
|
|
|
BaseDomainService baseservice, |
|
|
|
BaseDomainService baseservice, |
|
|
|
TaskJobService service |
|
|
|
) |
|
|
|
: base(excelImportService, snowflakeIdGenerator, commonManager, repository, detailRepository, invmng, baseservice) |
|
|
@ -92,6 +92,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
{ |
|
|
|
return new JsonResult(new { Code = 400, Message = "已创建发票不能重复创建" }); |
|
|
|
} |
|
|
|
//var talbe1 = _priceRepository.Select(p => new { BeginTime = p.BeginTime, EndTime = p.EndTime, LU = p.LU }).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var entitys = await _bbacMng.GetDetalListAsync(invbillNum).ConfigureAwait(false);//可结算
|
|
|
|
var priceList = _priceRepository.Where(p => p.IsCancel == false).ToList(); |
|
|
|
//价格单
|
|
|
@ -107,10 +111,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
await _bbacMng.SetWaitingState(invbillNum); |
|
|
|
var _taskid = await _service.ExportEnqueueAsync("生成发票任务", ExportExtentsion.Excel, string.Empty, string.Empty, CurrentUser, typeof(GenerateJisInvoiceService), customConditionList, (rs) => |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).ConfigureAwait(false); |
|
|
|
|
|
|
|
return new JsonResult(new { Code = 200, Message = "生成发票任务" }); |
|
|
|
|
|
|
|
|
|
|
|
//if (await _bbacMng.SetForwardState(main, SettleBillState.已开票).ConfigureAwait(false))
|
|
|
|
//{
|
|
|
|
// var groupNumList = entitys.Select(p => p.GroupNum).Distinct().ToList();
|
|
|
|