|
|
@ -152,8 +152,6 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
throw new UserFriendlyException($"扣减单状态不是【客户已收票】状态", "400"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return await InvokePD(invlist,p_list, _service, false); |
|
|
|
} |
|
|
|
[HttpPost] |
|
|
@ -227,8 +225,6 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
throw new UserFriendlyException($"当前发票状态不是【客户已收票】或【已扣减状态】不能进行出库扣减或撤销扣减操作", "400"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var detailist = _detailRepository.Where(p => p_list.Contains(p.BillNum)).ToList(); |
|
|
|
var first1 = detailist.FirstOrDefault(); |
|
|
|
List<CustomCondition> customConditionList = new List<CustomCondition>(); |
|
|
@ -246,11 +242,11 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
var lst = new List<TEntity>(); |
|
|
|
if (isback == false) |
|
|
|
{ |
|
|
|
lst = ls.Where(p => (p.State == SettleBillState.已提交扣减 || p.State == SettleBillState.已扣减)).ToList(); |
|
|
|
lst = ls.Where(p => (p.State == SettleBillState.扣减进行中 || p.State == SettleBillState.已扣减)).ToList(); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
lst = ls.Where(p => (p.State == SettleBillState.已提交撤销扣减|| p.State == SettleBillState.客户已收票)).ToList(); |
|
|
|
lst = ls.Where(p => (p.State == SettleBillState.撤销扣减进行中 || p.State == SettleBillState.客户已收票)).ToList(); |
|
|
|
} |
|
|
|
if (lst.Count() > 0) |
|
|
|
{ |
|
|
@ -260,11 +256,11 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
{ |
|
|
|
if (isback == false) |
|
|
|
{ |
|
|
|
item.State = SettleBillState.已提交扣减; |
|
|
|
item.State = SettleBillState.扣减进行中; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
item.State = SettleBillState.已提交撤销扣减; |
|
|
|
item.State = SettleBillState.撤销扣减进行中; |
|
|
|
} |
|
|
|
} |
|
|
|
await _repository.DbContext.BulkUpdateAsync(ls); |
|
|
|