浏览代码

Nouveau système PriceUtils

feature/export_comptable
Guillaume 4 年前
父节点
当前提交
f600707b03
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      ShopBundle/Services/Price/OrderShopPriceUtils.php

+ 7
- 1
ShopBundle/Services/Price/OrderShopPriceUtils.php 查看文件

@@ -78,10 +78,16 @@ class OrderShopPriceUtils implements OrderShopPriceUtilsInterface

public function getTotalOrderProductsWithReductions(OrderShopInterface $orderShop)
{
$total = $this->getTotalOrderProducts($orderShop) ;

$totalReductionAmount = 0 ;
foreach ($orderShop->getOrderReductionCarts() as $orderReductionCart) {
$reductionAmount = $this->amountOrderProductsReductionCart($orderShop,$orderReductionCart);
$totalReductionAmount += $this->amountOrderProductsReductionCart($orderShop,$orderReductionCart);
}

$total -= $totalReductionAmount ;

return $total ;
}



正在加载...
取消
保存