Browse Source

直供件HBPO结算导入价格判断逻辑修改,只验证价格是否为0

master
mahao 1 year ago
parent
commit
4230348030
  1. 19
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs

19
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs

@ -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);

Loading…
Cancel
Save