Browse Source

修改发票生成逻辑

master
学 赵 1 year ago
parent
commit
548ff23c8d
  1. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/ADJ_SERVICE.cs
  2. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/ADJ_SERVICE.cs

@ -267,7 +267,7 @@ namespace Win.Sfs.SettleAccount.Bases
{
itm.BusinessType = EnumBusinessType.YinDuJian;
}
errorEntitylist = await _baseDomainService.CheckPriceList(entityList, inv.Site, true).ConfigureAwait(false);
errorEntitylist = await _baseDomainService.CheckPriceList(entityList, inv.Site).ConfigureAwait(false);
break;
default:
errorEntitylist = await _baseDomainService.CheckPriceList(entityList, inv.Site).ConfigureAwait(false);

6
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs

@ -1475,7 +1475,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
await _repository.DbContext.BulkInsertAsync(detailList).ConfigureAwait(false);
if (adjlist.Count > 0)
{
await _repository.DbContext.BulkUpdateAsync(adjlist).ConfigureAwait(false);
await _repository.DbContext.BulkInsertAsync(adjlist).ConfigureAwait(false);
}
if (notDetialList.Count > 0)
{
@ -2022,7 +2022,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
}
if (adjlist.Count > 0)
{
await _repository.DbContext.BulkUpdateAsync(adjlist).ConfigureAwait(false);
await _repository.DbContext.BulkInsertAsync(adjlist).ConfigureAwait(false);
}
if (p_notlist.Count > 0)
{
@ -2348,7 +2348,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
}
if (adjlist.Count > 0)
{
await _repository.DbContext.BulkUpdateAsync(adjlist).ConfigureAwait(false);
await _repository.DbContext.BulkInsertAsync(adjlist).ConfigureAwait(false);
}
if (notDetialList.Count > 0)
{

Loading…
Cancel
Save