Pārlūkot izejas kodu

Correctif PointSaleSolver::isDelivered()

feature/souke
Guillaume Bourgeois pirms 9 mēnešiem
vecāks
revīzija
073daf0de2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      domain/Order/Order/OrderRepository.php

+ 1
- 1
domain/Order/Order/OrderRepository.php Parādīt failu

@@ -429,7 +429,7 @@ class OrderRepository extends AbstractRepository
$lastOrder = $this->findOneOrderLastByUser($user);
if ($lastOrder) {
$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;
}
}

Notiek ielāde…
Atcelt
Saglabāt