소스 검색

Correctif ProductOrderSolver

feature/souke
Guillaume 1 년 전
부모
커밋
1e98c56f91
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      common/logic/Order/ProductOrder/Service/ProductOrderSolver.php

+ 2
- 2
common/logic/Order/ProductOrder/Service/ProductOrderSolver.php 파일 보기

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

Loading…
취소
저장