Browse Source

Processus de commande

feature/export_comptable
Fab 4 years ago
parent
commit
7dd94dfc64
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ShopBundle/Services/Price/OrderShopPriceUtils.php

+ 2
- 2
ShopBundle/Services/Price/OrderShopPriceUtils.php View File

{ {


foreach ($order->getOrderReductionCarts() as $orderReductionCart) { foreach ($order->getOrderReductionCarts() as $orderReductionCart) {
if($orderReductionCart->getAppliedTo() == ReductionCart::APPLIED_TO_ORDER_PRODUCTS) {
if($orderReductionCart->getAppliedTo() === ReductionCart::APPLIED_TO_ORDER_PRODUCTS) {
if ($orderReductionCart->getUnit() == 'percent') { if ($orderReductionCart->getUnit() == 'percent') {


$priceWithTax = $this->applyReductionPercent( $priceWithTax = $this->applyReductionPercent(
$this->getTotalOrderProducts($order), $this->getTotalOrderProducts($order),
$orderReductionCart->getValue() $orderReductionCart->getValue()
), ),
$order->getTaxRateAverage()
$this->getTaxRateAverage($order)
); );
} else if ($orderReductionCart->getBehaviorTaxRate() == 'tax-included') { } else if ($orderReductionCart->getBehaviorTaxRate() == 'tax-included') {
$priceWithTax = $priceWithTax =

Loading…
Cancel
Save