private function canProcess($saleId)
    {
        $result = false;
        $entity = $this->daoReg->getById($saleId);
        if ($entity) {
            $state = $entity->getState();
            $result = ($state == ERegistry::STATE_PENDING);
        }
        return $result;
    }
private function canProcess($saleId)
    {
        $result = false;
        $entity = $this->daoReg->getById($saleId);
        if ($entity) {
            $state = $entity->getState();
            $result = ($state == ERegistry::STATE_PENDING);
        }
        return $result;
    }
private function canProcess ( $ saleId ) { $ result = false ; $ entity = $ this -> daoReg -> getById ( $ saleId ) ; if ( $ entity ) { $ state = $ entity -> getState ( ) ; $ result = ( $ state == ERegistry :: STATE_PENDING ) ; } return $ result ; }
More than one invoice can relate for one sale order. We should not pay bonus twice ore more.

@param int $saleId
@return bool
More than one invoice can relate for one sale order . We should not pay bonus twice ore more .