浏览代码

Merge branch 'develop' of https://forge.laclic.fr/Laclic/CaracoleBundle into develop

packProduct
Charly 3 年前
父节点
当前提交
7d21c80d5f
共有 3 个文件被更改,包括 5 次插入16 次删除
  1. +1
    -1
      Field/Filter/ProductCategoriesFilter.php
  2. +4
    -4
      Generator/OrderReferenceGenerator.php
  3. +0
    -11
      Repository/Order/OrderProductStore.php

+ 1
- 1
Field/Filter/ProductCategoriesFilter.php 查看文件

@@ -39,7 +39,7 @@ class ProductCategoriesFilter extends AssociationFilter
$isOffline = " [Hors ligne]";
}
$section = ' ['.$category->getSection()->getTitle().']' ;;
return $category->getTitle() . $section. $isOffline;
return $category . $section. $isOffline;

}
)

+ 4
- 4
Generator/OrderReferenceGenerator.php 查看文件

@@ -29,7 +29,6 @@ class OrderReferenceGenerator
if ($this->orderShopSolver->isValid($complementaryOrder)) $complementaryIndex++;
}
$orderShop = $complementaryOrder->getMainOrderShop();

}

switch ($orderShop->getSection()->getCycleType()) {
@@ -50,18 +49,19 @@ class OrderReferenceGenerator
break;
}

if($complementaryIndex){
if($complementaryIndex) {
$reference = $reference.'C'.$this->numberPad($complementaryIndex, 1);
}

return $reference;

}

public function buildReferenceCycleDay(OrderShopInterface $orderShop): string
{
return $this->getPrefixReference($orderShop) .
'C' . $this->numberPad($orderShop->getCycleId(), 3);
'J' . $orderShop->getDistribution()->getCycleNumber() .
'C' . $this->numberPad($orderShop->getCycleId(), 3) .
'A' . $this->formatYear($orderShop->getDistribution()->getYear());
}

public function buildReferenceCycleWeek(OrderShopInterface $orderShop): string

+ 0
- 11
Repository/Order/OrderProductStore.php 查看文件

@@ -39,17 +39,6 @@ class OrderProductStore extends AbstractStore
return $query;
}

// findGiftVouchersByOrder
public function getGiftVouchersByOrder(OrderShopInterface $orderShop): array
{
$query = $this->createQuery();
$query
->filterByOrderShop($orderShop)
->filterIsGiftVoucherActive();

return $query->find();
}

// findOrderProductsInCartsByProduct
public function getInCartsByProduct(ProductInterface $product, $query = null): array
{

正在加载...
取消
保存