Ver código fonte

Divers

packProduct
Guillaume 3 anos atrás
pai
commit
15cb2247c0
3 arquivos alterados com 7 adições e 7 exclusões
  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 arquivo

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

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

@@ -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 = [

Carregando…
Cancelar
Salvar