} | } | ||||
public function isReductionGiftUsed($reductionGift){ | public function isReductionGiftUsed($reductionGift){ | ||||
if(!$this->orderShopRepo->countValidOrderWithReductionCredit($reductionGift)) { | |||||
if($this->orderShopRepo->countValidOrderWithReductionCredit($reductionGift)) { | |||||
return true; | return true; | ||||
}else{ | }else{ | ||||
return false; | return false; |