Commit f2d9ee85 by 杨树贤

修改系数

parent bc059a9f
Showing with 5 additions and 5 deletions
......@@ -591,19 +591,19 @@ func (ls *LyService) GetTariffAndPrice(sku model.LySku) model.LySku {
if php2go.InArray(sku.Coo, usLabelList) {
//转换价格
//判断原始人民币有没有价格,没有的话,那就是最终的人民币价格 X 2.25
//判断原始人民币有没有价格,没有的话,那就是最终的人民币价格 X 1.10
var transformedLadderPrice []model.LadderPrice
transformedLadderPrice = sku.LadderPrice
//digikey暂时不处理
if sku.SupplierId != 7 {
for index, price := range sku.LadderPrice {
transformedLadderPrice[index].PriceCn = c.MyRound(c.MulFloat(price.PriceCn, 2.25), 4)
transformedLadderPrice[index].PriceAc = c.MyRound(c.MulFloat(price.PriceAc, 2.25), 4)
transformedLadderPrice[index].PriceCn = c.MyRound(c.MulFloat(price.PriceCn, 1.10), 4)
transformedLadderPrice[index].PriceAc = c.MyRound(c.MulFloat(price.PriceAc, 1.10), 4)
}
}
sku.Tariff = 2.25
sku.TariffFormat = "125%"
sku.Tariff = 1.10
sku.TariffFormat = "10%"
} else {
sku.Coo = ""
}
......
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