Sfoglia il codice sorgente

OrderSolver : correctif valeur retour getProductQuantity()

refactoring
Guillaume 1 anno fa
parent
commit
24a9c115a0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      common/logic/Order/Order/Service/OrderSolver.php

+ 1
- 1
common/logic/Order/Order/Service/OrderSolver.php Vedi File

@@ -203,7 +203,7 @@ class OrderSolver extends AbstractService implements SolverInterface
/**
* Retourne la quantité d'un produit donné de plusieurs commandes.
*/
public function getProductQuantity(Product $product, array $orders, bool $ignoreCancel = false, string $unit = null): int
public function getProductQuantity(Product $product, array $orders, bool $ignoreCancel = false, string $unit = null): float
{
$quantity = 0;


Loading…
Annulla
Salva