Browse Source

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

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

15
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.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);

Loading…
Cancel
Save