瀏覽代碼

Correctif PointSaleSolver::isDelivered()

feature/souke
Guillaume Bourgeois 9 月之前
父節點
當前提交
073daf0de2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      domain/Order/Order/OrderRepository.php

+ 1
- 1
domain/Order/Order/OrderRepository.php 查看文件

@@ -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;
}
}

Loading…
取消
儲存