Browse Source

更新版本

master
学 赵 12 months ago
parent
commit
9887795020
  1. 36
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

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

@ -259,6 +259,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
} }
else else
{ {
var invoiceGrpDetails = _settleAccountDbContext.Set<INVOICE_WAIT_DETAIL>() var invoiceGrpDetails = _settleAccountDbContext.Set<INVOICE_WAIT_DETAIL>()
.Where(t => t.InvbillNum == invbillNum) .Where(t => t.InvbillNum == invbillNum)
.ToList(); .ToList();
@ -283,6 +287,27 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
{ {
var invoiceGrpDetail = invoiceGrpDetails[i]; var invoiceGrpDetail = invoiceGrpDetails[i];
if (invoiceGrpDetail.BussiessType == EnumBusinessType.MaiDanJianHBPO)
{
invoiceGrpDetail.SetProperty("ErpToLoc", "CC14");
}
if (invoiceGrpDetail.BussiessType == EnumBusinessType.BeiJian)
{
invoiceGrpDetail.SetProperty("ErpToLoc", "CC005");
}
if (invoiceGrpDetail.BussiessType == EnumBusinessType.JisHBPO)
{
invoiceGrpDetail.SetProperty("ErpToLoc", $"C{invoiceGrp.ClientCode}");
}
if (invoiceGrpDetail.BussiessType == EnumBusinessType.ZhiGongJianBBAC)
{
invoiceGrpDetail.SetProperty("ErpToLoc", $"C{invoiceGrp.ClientCode}");
}
if (invoiceGrpDetail.BussiessType == EnumBusinessType.YinDuJian)
{
invoiceGrpDetail.SetProperty("ErpToLoc", "CC001");
}
tedSaInvs.Add(new TED_SAS_INVOICE() tedSaInvs.Add(new TED_SAS_INVOICE()
{ {
GUID = GuidGenerator.Create(), GUID = GuidGenerator.Create(),
@ -463,7 +488,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
//红冲发票提交QAD //红冲发票提交QAD
if (!string.IsNullOrEmpty(invoiceGrp.ParentInvbillNum)) if (!string.IsNullOrEmpty(invoiceGrp.ParentInvbillNum))
{ {
await SubmitToQadHongChongAsync(invoiceGrp.ParentInvbillNum).ConfigureAwait(false); await SubmitToQadHongChongAsync(invoiceGrp.ParentInvbillNum,_detail).ConfigureAwait(false);
} }
await _exChangeCenterDbContext.BulkInsertAsync(new List<TEA_TASK_SUB>() { teaTaskSub }).ConfigureAwait(false); await _exChangeCenterDbContext.BulkInsertAsync(new List<TEA_TASK_SUB>() { teaTaskSub }).ConfigureAwait(false);
await _exChangeCenterDbContext.BulkInsertAsync(tedsaInvs1).ConfigureAwait(false); await _exChangeCenterDbContext.BulkInsertAsync(tedsaInvs1).ConfigureAwait(false);
@ -527,14 +552,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
//红冲发票提交QAD //红冲发票提交QAD
if (!string.IsNullOrEmpty(invoiceGrp.ParentInvbillNum)) if (!string.IsNullOrEmpty(invoiceGrp.ParentInvbillNum))
{ {
if (invoiceGrp.BusinessType == EnumBusinessType.JisBBAC)
{
await SubmitToQadHongChongAsync(invoiceGrp.ParentInvbillNum).ConfigureAwait(false);
}
else
{
await SubmitToQadHongChongAsync(invoiceGrp.ParentInvbillNum).ConfigureAwait(false); await SubmitToQadHongChongAsync(invoiceGrp.ParentInvbillNum).ConfigureAwait(false);
}
} }
//await _exChangeCenterDbContext.Set<TEA_TASK_SUB>().AddAsync(teaTaskSub).ConfigureAwait(false); //await _exChangeCenterDbContext.Set<TEA_TASK_SUB>().AddAsync(teaTaskSub).ConfigureAwait(false);

Loading…
Cancel
Save