Pārlūkot izejas kodu

Divers

packProduct
Guillaume pirms 3 gadiem
vecāks
revīzija
15cb2247c0
3 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt