Browse Source

更新发票撤销记录功能

master
学 赵 1 year ago
parent
commit
91a157521c
  1. 1
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs
  2. 10
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs

1
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/PD_SERVICE.cs

@ -159,6 +159,7 @@ namespace Win.Sfs.SettleAccount.Bases
/// <param name="isback"></param>
/// <returns></returns>
/// <exception cref="UserFriendlyException"></exception>
[UnitOfWork(false)]
protected async Task<string> InvokePD(List<string> p_list, TaskJobService p_service, bool isback=false)
{
var invlist=_repository.Where(p=>p_list.Contains(p.BillNum)).ToList();

10
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs

@ -180,7 +180,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
// }
// return pageCount;
//}
[UnitOfWork(false)]
public void Sync<T>(List<T> p_ls, EnumDeliverBjBmpBillType bussinessType, string p_email, bool flag = true) where T : PD_BASE, new()
{
var query = from itm in p_ls
@ -285,16 +285,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
{
if (flag == true)
{
foreach (var item in bbacList)
foreach (var item in hbpoList)
{
item.State = SettleBillState.;
}
foreach (var item in bbacinvList)
foreach (var item in hbpoinvList)
{
item.State = SettleBillState.;
}
_dbcontext.BulkUpdate(bbacList);
_dbcontext.BulkUpdate(bbacinvList);
_dbcontext.BulkUpdate(hbpoList);
_dbcontext.BulkUpdate(hbpoinvList);
}
else

Loading…
Cancel
Save