Explorar el Código

Divers

packProduct
Guillaume hace 2 años
padre
commit
15cb2247c0
Se han modificado 3 ficheros con 7 adiciones y 7 borrados
  1. +1
    -1
      Model/Newsletter/NewsletterModel.php
  2. +5
    -5
      Solver/Order/OrderShopSolver.php
  3. +1
    -1
      Solver/Ticket/TicketSolver.php

+ 1
- 1
Model/Newsletter/NewsletterModel.php Ver fichero

@@ -17,7 +17,7 @@ abstract class NewsletterModel extends SovNewsletterModel implements FilterSecti
*/
protected $section;

public function getSection(): ?SectionInterface
public function getSection(): SectionInterface
{
return $this->section;
}

+ 5
- 5
Solver/Order/OrderShopSolver.php Ver fichero

@@ -351,11 +351,11 @@ class OrderShopSolver
$byWeight = true;
}

return $this->productSolver->getAvailableQuantityInherited($product) - $this->getQuantityOrderByProduct(
$orderShop,
$product,
$byWeight
);
return max($this->productSolver->getAvailableQuantityInherited($product) - $this->getQuantityOrderByProduct(
$orderShop,
$product,
$byWeight
), 0);
}

public function hasMakeAChoiceAboutComplementaryOrder(OrderShop $orderShop): bool

+ 1
- 1
Solver/Ticket/TicketSolver.php Ver fichero

@@ -7,7 +7,7 @@ use Lc\SovBundle\Solver\Ticket\TicketSolver as SovTicketSolver;

class TicketSolver extends SovTicketSolver
{
public function getTypeChoices(): array
public static function getTypeChoices(): array
{
$choices = parent::getTypeChoices();
$choicesProduct = [

Cargando…
Cancelar
Guardar