Commit cfe4036f by mushishixian

Merge branch 'ysx-魔方改版-20230313' into dev

parents 2ebaa662 863d2f4a
Showing with 5 additions and 5 deletions
......@@ -445,18 +445,18 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
}
}
//美金成本价
priceCostUs := price.PriceUs * usDiscountRatio
priceCostUs := common.MyRound(price.PriceUs*usDiscountRatio, 4)
//美金售价
priceUs := priceCostUs * priceRatio.RatioUsd
//人民币成本价
priceCostCn := price.PriceUs * coefficient.Ratio * cnDiscountRatio * tax
priceCostCn := common.MyRound(price.PriceUs*coefficient.Ratio*cnDiscountRatio*tax, 4)
//人民币售价
priceCn := priceCostCn * priceRatio.Ratio * tax
priceCn := priceCostCn * priceRatio.Ratio
data[key].PriceUs = common.MyRound(priceUs, 4)
data[key].PriceCostUs = common.MyRound(priceCostUs, 4)
data[key].PriceCostUs = priceCostUs
//处理人民币
data[key].PriceCn = common.MyRound(priceCn, 4)
data[key].PriceCostCn = common.MyRound(priceCostCn, 4)
data[key].PriceCostCn = priceCostCn
//处理mouser的成本价
//mouser成本价是什么,斌哥同步过来的成本价
//sku.LadderPrice[key].CostPrice是专门针对贸泽(mouser)的
......
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