瀏覽代碼

Processus de commande

feature/export_comptable
Fab 4 年之前
父節點
當前提交
7dd94dfc64
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      ShopBundle/Services/Price/OrderShopPriceUtils.php

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

@@ -90,7 +90,7 @@ class OrderShopPriceUtils implements OrderShopPriceUtilsInterface
{

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') {

$priceWithTax = $this->applyReductionPercent(
@@ -104,7 +104,7 @@ class OrderShopPriceUtils implements OrderShopPriceUtilsInterface
$this->getTotalOrderProducts($order),
$orderReductionCart->getValue()
),
$order->getTaxRateAverage()
$this->getTaxRateAverage($order)
);
} else if ($orderReductionCart->getBehaviorTaxRate() == 'tax-included') {
$priceWithTax =

Loading…
取消
儲存