Browse Source

Divers

packProduct
Guillaume 2 years ago
parent
commit
15cb2247c0
3 changed files with 7 additions and 7 deletions
  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 View File

*/ */
protected $section; protected $section;


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

+ 5
- 5
Solver/Order/OrderShopSolver.php View File

$byWeight = true; $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 public function hasMakeAChoiceAboutComplementaryOrder(OrderShop $orderShop): bool

+ 1
- 1
Solver/Ticket/TicketSolver.php View File



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

Loading…
Cancel
Save