diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs index ba25744c..ef8db3ef 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs @@ -354,7 +354,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ /// private List GroupSaDetails(List bbacSaDetails) { - return bbacSaDetails.GroupBy(t => new { t.PN, t.LU, t.GroupNum, t.SettleDate }).Select(t => + return bbacSaDetails.GroupBy(t => new { t.PN, t.LU, t.GroupNum, t.SettleDate, t.BusinessType }).Select(t => { var bbacSaDetail = t.First(); bbacSaDetail.Qty = t.Sum(t => t.Qty); @@ -467,7 +467,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ bbacCanSaDetails.ForEach(bbacCanSaDetail => { bbacCanSaDetail.BillNum = bbacCanSaDetail.InvGroupNum = bbacCanSaBillNum; - bbacCanSaDetail.BusinessType = _businessType; }); await _bbacCanSaRepository.InsertAsync(bbacCanSa).ConfigureAwait(false); @@ -475,11 +474,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ } if (bbacNotSaDetails.Count > 0) { - bbacNotSaDetails.ForEach(bbacNotSaDetail => - { - bbacNotSaDetail.BusinessType = _businessType; - }); - await _bbacNotSaDetailRepository.DbContext.BulkInsertAsync(bbacNotSaDetails).ConfigureAwait(false); } if (materialRelationships.Count > 0)