瀏覽代碼

[Boutique] Commander : correctif bug affichage distributions sur le calendrier quand une distribution est activée sur une période de congés

develop
Guillaume Bourgeois 3 週之前
父節點
當前提交
ba5f73c240
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. +1
    -3
      producer/controllers/OrderController.php

+ 1
- 3
producer/controllers/OrderController.php 查看文件

@@ -725,15 +725,13 @@ class OrderController extends ProducerBaseController
// Filtre par point de vente
if ($pointSaleCurrent && $producer->option_order_entry_point == Producer::ORDER_ENTRY_POINT_POINT_SALE) {
$distributionsArrayFilterPointSale = [];
for ($i = 0; $i < count($distributionsArray); $i++) {
$distribution = $distributionsArray[$i];
foreach($distributionsArray as $distribution) {
if ($distribution && $distributionModule->isPointSaleActive($distribution, $pointSaleCurrent)) {
$countOrders = Order::searchCount([
'id_distribution' => $distribution->id,
'id_point_sale' => $pointSaleCurrent->id
]);
$orderUserPointSale = $this->getOrderUser($distribution->date, $pointSaleCurrent);

if (!$pointSaleCurrent->maximum_number_orders
|| ($orderUserPointSale && $orderUserPointSale->id_point_sale == $pointSaleCurrent->id)
|| ($pointSaleCurrent->maximum_number_orders &&

Loading…
取消
儲存