瀏覽代碼

[Frontoffice] Bug code reduction

feature/export_comptable
Fab 4 年之前
父節點
當前提交
83ae5f549c
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      ShopBundle/Repository/ReductionCartRepository.php

+ 2
- 2
ShopBundle/Repository/ReductionCartRepository.php 查看文件

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

Loading…
取消
儲存