Explorar el Código

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

packProduct
Charly hace 3 años
padre
commit
7d21c80d5f
Se han modificado 3 ficheros con 5 adiciones y 16 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar