Pārlūkot izejas kodu

[Frontoffice] Bug code reduction

feature/export_comptable
Fab pirms 4 gadiem
vecāks
revīzija
83ae5f549c
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      ShopBundle/Repository/ReductionCartRepository.php

+ 2
- 2
ShopBundle/Repository/ReductionCartRepository.php Parādīt failu

@@ -29,11 +29,11 @@ class ReductionCartRepository extends BaseRepository implements DefaultRepositor
return ReductionCartInterface::class;
}

public function findOneByCode($code)
public function findByCode($code)
{
$query = $this->findByMerchantQuery() ;
$query->andWhere('e.codes LIKE :code')->setParameter('code', '%'.$code.'%') ;
return $query->getQuery()->getOneOrNullResult() ;
return $query->getQuery()->getResult() ;
}

public function getValuesOfFieldType(){

Notiek ielāde…
Atcelt
Saglabāt