Browse Source

Correctif PointSaleSolver::isDelivered()

feature/souke
Guillaume Bourgeois 9 months ago
parent
commit
073daf0de2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      domain/Order/Order/OrderRepository.php

+ 1
- 1
domain/Order/Order/OrderRepository.php View File

$lastOrder = $this->findOneOrderLastByUser($user); $lastOrder = $this->findOneOrderLastByUser($user);
if ($lastOrder) { if ($lastOrder) {
$pointSale = $this->pointSaleRepository->findOnePointSaleById($lastOrder->id_point_sale); $pointSale = $this->pointSaleRepository->findOnePointSaleById($lastOrder->id_point_sale);
if($distribution && !$this->pointSaleSolver->isDelivered($pointSale, $distribution)) {
if($distribution && $pointSale && !$this->pointSaleSolver->isDelivered($pointSale, $distribution)) {
$pointSale = null; $pointSale = null;
} }
} }

Loading…
Cancel
Save