|
@@ -576,14 +576,14 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
product.setPrice(productPrice);
|
|
|
// 商品税后价格
|
|
|
Double productTaxPrice = MathUtil.add(productPrice, productTax).doubleValue();
|
|
|
- // 折后单价
|
|
|
- discountPrice = MathUtil.add(discountPrice, discountTax).doubleValue();
|
|
|
+ // 折后税后单价
|
|
|
+ Double discountTaxPrice = MathUtil.add(productPrice, productTax).doubleValue();
|
|
|
// 折扣率 = 折后单价/机构价
|
|
|
- Double discountRate = MathUtil.mul(MathUtil.div(discountPrice, productTaxPrice), 100).doubleValue();
|
|
|
+ Double discountRate = MathUtil.mul(MathUtil.div(discountTaxPrice, productTaxPrice), 100).doubleValue();
|
|
|
// 单个商品的金额
|
|
|
Double productAmount = MathUtil.mul(productTaxPrice, productNum).doubleValue();
|
|
|
// 单个商品的折后金额
|
|
|
- Double productFee = MathUtil.mul(discountPrice, productNum).doubleValue();
|
|
|
+ Double productFee = MathUtil.mul(discountTaxPrice, productNum).doubleValue();
|
|
|
// 单个商品总税费
|
|
|
Double taxFee = MathUtil.mul(discountTax, productNum).doubleValue();
|
|
|
if (hasActProductFlag && null != promotions) {
|
|
@@ -612,7 +612,7 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
PromotionPriceVo promotionPrice = new PromotionPriceVo();
|
|
|
promotionPrice.setProductId(productId);
|
|
|
promotionPrice.setNumber(productNum);
|
|
|
- promotionPrice.setPrice(discountPrice);
|
|
|
+ promotionPrice.setPrice(discountTaxPrice);
|
|
|
if (null == promotions.getProductList()){
|
|
|
promotions.setProductList(new ArrayList<>());
|
|
|
}
|