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