Quellcode durchsuchen

Merge branch 'develop'

master
Guillaume vor 1 Jahr
Ursprung
Commit
4e77438b87
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      common/logic/Order/ProductOrder/Service/ProductOrderSolver.php

+ 2
- 2
common/logic/Order/ProductOrder/Service/ProductOrderSolver.php Datei anzeigen

@@ -13,12 +13,12 @@ class ProductOrderSolver extends AbstractService implements SolverInterface
/**
* Retourne le prix du produit avec taxe
*/
public function getPriceWithTax(ProductOrder $productOrder): float
public function getPriceWithTax(ProductOrder $productOrder)
{
return Price::getPriceWithTax($productOrder->price, $productOrder->taxRate->value);
}

public function getPriceByTypeTotal(ProductOrder $productOrder, string $typeTotal = Order::AMOUNT_TOTAL): float
public function getPriceByTypeTotal(ProductOrder $productOrder, string $typeTotal = Order::AMOUNT_TOTAL)
{
if ($typeTotal == Order::INVOICE_AMOUNT_TOTAL && $productOrder->invoice_price) {
return $productOrder->invoice_price;

Laden…
Abbrechen
Speichern