|
@ -599,10 +599,21 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
pubSaDetail.BillNum = pubSaBillNum; |
|
|
pubSaDetail.BillNum = pubSaBillNum; |
|
|
pubSaDetail.Site = site; |
|
|
pubSaDetail.Site = site; |
|
|
}); |
|
|
}); |
|
|
//不可结算 结算分组号码(根据价格区分结算、不可结算)
|
|
|
|
|
|
var pubNotSaGroupNums = pubSaDetails.FindAll(t => t.Price == default(decimal)).Select(t => t.GroupNum).Distinct(); |
|
|
var pubSaDetailsCanSes = new List<PUB_SA_DETAIL>(); |
|
|
var pubSaDetailsCanSes = pubSaDetails.FindAll(t => pubNotSaGroupNums.Contains(t.GroupNum) == false); |
|
|
var pubSaDetailsNotCanSes = new List<PUB_SA_DETAIL>(); |
|
|
var pubSaDetailsNotCanSes = pubSaDetails.FindAll(t => pubNotSaGroupNums.Contains(t.GroupNum) == true); |
|
|
if (businessType == EnumBusinessType.ZhiGongJianHBPO) |
|
|
|
|
|
{ |
|
|
|
|
|
pubSaDetailsCanSes = pubSaDetails.FindAll(t => t.Price != default); |
|
|
|
|
|
pubSaDetailsNotCanSes = pubSaDetails.FindAll(t => t.Price == default); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
//不可结算 结算分组号码(根据价格区分结算、不可结算)
|
|
|
|
|
|
var pubNotSaGroupNums = pubSaDetails.FindAll(t => t.Price == default(decimal)).Select(t => t.GroupNum).Distinct(); |
|
|
|
|
|
pubSaDetailsCanSes = pubSaDetails.FindAll(t => pubNotSaGroupNums.Contains(t.GroupNum) == false); |
|
|
|
|
|
pubSaDetailsNotCanSes = pubSaDetails.FindAll(t => pubNotSaGroupNums.Contains(t.GroupNum) == true); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//可结算明细
|
|
|
//可结算明细
|
|
|
var pubCanSaDetails = ObjectMapper.Map<List<PUB_SA_DETAIL>, List<PUB_CAN_SA_DETAIL>>(pubSaDetailsCanSes); |
|
|
var pubCanSaDetails = ObjectMapper.Map<List<PUB_SA_DETAIL>, List<PUB_CAN_SA_DETAIL>>(pubSaDetailsCanSes); |
|
|