Guillaume пре 3 година
родитељ
комит
15cb2247c0
3 измењених фајлова са 7 додато и 7 уклоњено
  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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

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

Loading…
Откажи
Сачувај