|
|
@ -599,10 +599,21 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
pubSaDetail.BillNum = pubSaBillNum; |
|
|
|
pubSaDetail.Site = site; |
|
|
|
}); |
|
|
|
|
|
|
|
var pubSaDetailsCanSes = new List<PUB_SA_DETAIL>(); |
|
|
|
var pubSaDetailsNotCanSes = new List<PUB_SA_DETAIL>(); |
|
|
|
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(); |
|
|
|
var pubSaDetailsCanSes = pubSaDetails.FindAll(t => pubNotSaGroupNums.Contains(t.GroupNum) == false); |
|
|
|
var pubSaDetailsNotCanSes = pubSaDetails.FindAll(t => pubNotSaGroupNums.Contains(t.GroupNum) == true); |
|
|
|
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); |
|
|
|