浏览代码

Merge branch 'develop'

master
Guillaume Bourgeois 1年前
父节点
当前提交
b4da6dcf01
共有 2 个文件被更改,包括 31 次插入17 次删除
  1. +29
    -15
      Repository/Order/OrderShopStore.php
  2. +2
    -2
      Resources/translations/admin.fr.yaml

+ 29
- 15
Repository/Order/OrderShopStore.php 查看文件

@@ -133,21 +133,6 @@ class OrderShopStore extends AbstractStore
);
}

// getOrderShopsOfWeekByUser
//getByCurrentCycleAndUser
public function getByCurrentDistributionAndUser(UserInterface $user = null, array $params = [], $query = null)
{
return $this->getByCurrentDistribution(
array_merge(
[
'user' => $user,
'excludeComplementaryOrderShops' => true
],
$params
),
$query
);
}

//public $countOrderShopsOfWeek = null;
// public function countByCurrentCycle(bool $excludeComplementaryOrderShops = true, $query = null)
@@ -181,6 +166,35 @@ class OrderShopStore extends AbstractStore
return $this->countOrderShopsOfWeek;*/
}

public function getByCurrentDistributionAndUser(UserInterface $user = null, array $params = [], $query = null)
{
return $this->getByCurrentDistribution(
array_merge(
[
'user' => $user,
'excludeComplementaryOrderShops' => true
],
$params
),
$query
);
}

public function countValidByCurrentDistributionAndUser(UserInterface $user = null, array $params = [], $query = null)
{
return $this->countByCurrentDistribution(
array_merge(
[
'isValid' => true,
'user' => $user,
'excludeComplementaryOrderShops' => true
],
$params
),
$query
);
}

// getNextWeekId
public function getNextCycleId(Distribution $distribution, $query = null): int
{

+ 2
- 2
Resources/translations/admin.fr.yaml 查看文件

@@ -133,8 +133,8 @@ entity:
label: Règle de taxe
label_plurial: Règles de taxes
UserMerchant:
label: Utilisateur avec compte prépayé actif
label_plurial: Utilisateurs avec comptes prépayés actifs
label: Utilisateur
label_plurial: Utilisateurs
fields:
user:
email: Email

正在加载...
取消
保存