Quellcode durchsuchen

Nouveau système PriceUtils

feature/export_comptable
Guillaume vor 4 Jahren
Ursprung
Commit
f600707b03
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. +7
    -1
      ShopBundle/Services/Price/OrderShopPriceUtils.php

+ 7
- 1
ShopBundle/Services/Price/OrderShopPriceUtils.php Datei anzeigen

@@ -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 ;
}



Laden…
Abbrechen
Speichern