Commit d5ab13b9 authored by 黄奎's avatar 黄奎

页面修改

parent d249fe2d
......@@ -1797,7 +1797,6 @@ namespace Mall.WebApi.Controllers.MallBase
var parms = RequestParm;
JObject prams = JObject.Parse(parms.msg.ToString());
int IsKorea = prams.GetInt("IsKorea", 0);//是否为韩国馆项目(1-是)
RB_Goods_Extend demodel = JsonConvert.DeserializeObject<RB_Goods_Extend>(parms.msg.ToString());
demodel.TenantId = parms.TenantId;
demodel.MallBaseId = parms.MallBaseId;
......@@ -1927,7 +1926,15 @@ namespace Mall.WebApi.Controllers.MallBase
{
demodel.SellingPrice = SellingPrice;
}
demodel.MinProfitRate = demodel.SpecificationPriceList.Where(x => x.SellingPrice > 0 && x.CostMoney > 0 && x.Commission > 0)?.Min(x => Math.Round(((x.SellingPrice ?? 0) - x.CostMoney - x.Commission) / (x.SellingPrice ?? 0), 2, MidpointRounding.AwayFromZero)) ?? 0;
try
{
demodel.MinProfitRate = demodel.SpecificationPriceList.Where(x => x.SellingPrice > 0 && x.CostMoney > 0 && x.Commission > 0)?.Min(x => Math.Round(((x.SellingPrice ?? 0) - x.CostMoney - x.Commission) / (x.SellingPrice ?? 0), 2, MidpointRounding.AwayFromZero)) ?? 0;
}
catch
{
}
}
//分销佣金
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment