Browse Source

更新版本呢

master
zhaoxinyu 5 months ago
parent
commit
49b473a07c
  1. 12
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

12
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -186,16 +186,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
_globalConfigOptions.IsSyncInvoiceQadState = true;
var invoiceGrps1 = _settleAccountDbContext.Set<INVOICE_GRP>()
.Where(t => invbillNums.Contains(t.InvbillNum) && t.State == SettleBillState.);
.Where(t => invbillNums.Contains(t.InvbillNum) && t.State == SettleBillState.);
foreach (var itm in invoiceGrps1)
{
itm.State = SettleBillState.;
itm.State = SettleBillState.QAD退回到财务审核;
}
await _settleAccountDbContext.BulkUpdateAsync(invoiceGrps1.ToList()).ConfigureAwait(false);
var invoiceGrps = _settleAccountDbContext.Set<INVOICE_GRP>()
.Where(t => invbillNums.Contains(t.InvbillNum) && t.State == SettleBillState.);
.Where(t => invbillNums.Contains(t.InvbillNum) && t.State == SettleBillState.QAD退回到财务审核);
var invoiceBBACGrps = invoiceGrps.Where(p => p.BusinessType == EnumBusinessType.JisBBAC);
@ -1171,7 +1171,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
// 批量插入TED_SAS_INVOICE记录
await _exChangeCenterDbContext.BulkInsertAsync(tedSaInvs).ConfigureAwait(false);
// 设置发票状态为"已提交QAD"
invoice.State = SettleBillState.QAD;
invoice.State = SettleBillState.;
// 批量更新INVOICE_GRP记录
await _repository.DbContext.BulkUpdateAsync(new List<INVOICE_GRP>() { invoice }).ConfigureAwait(false);
// 异步绑定发票与QAD同步
@ -1284,7 +1284,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
await _exChangeCenterDbContext.BulkInsertAsync(new List<TEA_TASK_SUB>() { teaTaskSub }).ConfigureAwait(false);
await _exChangeCenterDbContext.BulkInsertAsync(tedSaInvs).ConfigureAwait(false);
invoice.State = SettleBillState.QAD;
invoice.State = SettleBillState.;
await _repository.DbContext.BulkUpdateAsync(new List<INVOICE_GRP>() { invoice }).ConfigureAwait(false);
await BindInvoiceSyncQadAsync(teaTaskSub, invoice.RealnvBillNum, invoice.InvbillNum, invoice.ClientCode, invoice.CreationTime).ConfigureAwait(false);
}
@ -1376,7 +1376,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
}
await _exChangeCenterDbContext.BulkInsertAsync(new List<TEA_TASK_SUB>() { teaTaskSub }).ConfigureAwait(false);
await _exChangeCenterDbContext.BulkInsertAsync(tedSaInvs).ConfigureAwait(false);
invoice.State = SettleBillState.QAD;
invoice.State = SettleBillState.;
await _repository.DbContext.BulkUpdateAsync(new List<INVOICE_GRP>() { invoice }).ConfigureAwait(false);
await BindInvoiceSyncQadAsync(teaTaskSub, invoice.RealnvBillNum, invoice.InvbillNum, invoice.ClientCode, invoice.CreationTime).ConfigureAwait(false);
}

Loading…
Cancel
Save