|
@@ -320,7 +320,7 @@ public class SplitAccountService extends BaseService {
|
|
|
|
|
|
for (OrderProductVo orderProduct : orderProductList) {
|
|
for (OrderProductVo orderProduct : orderProductList) {
|
|
// 价格 * 数量 * 供应商成本比例/100
|
|
// 价格 * 数量 * 供应商成本比例/100
|
|
- double costPrice = MathUtil.mul(MathUtil.mul(orderProduct.getPrice(), orderProduct.getNum()), orderProduct.getShopPercent() / 100, 2).doubleValue();
|
|
|
|
|
|
+ double costPrice = MathUtil.mul(orderProduct.getTotalAmount(), orderProduct.getShopPercent() / 100, 2).doubleValue();
|
|
if (2 == supportFlag) {
|
|
if (2 == supportFlag) {
|
|
//供应商自己承担手续费
|
|
//供应商自己承担手续费
|
|
costPrice = MathUtil.sub(costPrice, procedureFee).doubleValue();
|
|
costPrice = MathUtil.sub(costPrice, procedureFee).doubleValue();
|