Commit e0ec7736 by 杨树贤

Merge branch 'master' into dev

parents a994d704 d216fb49
......@@ -331,6 +331,7 @@ func (ls *LyService) LyGoodsDetail(ctx context.Context, params RequestParams, go
has, limitStock := ls.getLimitStock(sku.GoodsId)
if has {
sku.Stock = int64(limitStock)
sku.BatchSn = "" //如果存在指定库存,则批次是空
}
//计算按钮
sku.LabelOp = activityService.GetLabelOp(sku)
......
......@@ -351,6 +351,11 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
continue
}
}
//如果有人民币的话,就用人民币,没有的话,就用上面的美元算出来的人民币
//L0018562一定有美元的,所以不能提前判断
if price.PriceCn != 0 {
priceCnNoTax = price.PriceCn
}
originalPrice = append(originalPrice, model.OriginPrice{
Purchases: price.Purchases,
PriceCn: c.MyRound(c.MulFloat(priceCnNoTax, tax), 4),
......
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 sign in to comment