Kaynağa Gözat

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

packProduct
Fabien Normand 3 yıl önce
ebeveyn
işleme
8a3e5b8e7f
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. +4
    -4
      Generator/OrderReferenceGenerator.php

+ 4
- 4
Generator/OrderReferenceGenerator.php Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet