소스 검색

Merge branch 'develop'

master
Fabien Normand 3 년 전
부모
커밋
2cc9ded792
2개의 변경된 파일4개의 추가작업 그리고 15개의 파일을 삭제
  1. +4
    -4
      Generator/OrderReferenceGenerator.php
  2. +0
    -11
      Repository/Order/OrderProductStore.php

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

Loading…
취소
저장