Procházet zdrojové kódy

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

packProduct
Charly před 3 roky
rodič
revize
7d21c80d5f
3 změnil soubory, kde provedl 5 přidání a 16 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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
{

Načítá se…
Zrušit
Uložit