public function andReceptionCodes($fields = '*')
    {
        $this->sql_select->join('gems__reception_codes',
                                'gems__tokens.gto_reception_code = grc_id_reception_code',
                                $fields);

        // Some queries use multiple token tables
        $expr = str_replace('gto_', 'gems__tokens.gto_', (string) $this->util->getTokenData()->getStatusExpression());

        $this->sql_select->columns(
                ['token_status' => new \Zend_Db_Expr($expr)],
                'gems__tokens'
                );

        return $this;
    }
public function andReceptionCodes($fields = '*')
    {
        $this->sql_select->join('gems__reception_codes',
                                'gems__tokens.gto_reception_code = grc_id_reception_code',
                                $fields);

        // Some queries use multiple token tables
        $expr = str_replace('gto_', 'gems__tokens.gto_', (string) $this->util->getTokenData()->getStatusExpression());

        $this->sql_select->columns(
                ['token_status' => new \Zend_Db_Expr($expr)],
                'gems__tokens'
                );

        return $this;
    }
public function andReceptionCodes ( $ fields = '*' ) { $ this -> sql_select -> join ( 'gems__reception_codes' , 'gems__tokens.gto_reception_code = grc_id_reception_code' , $ fields ) ; // Some queries use multiple token tables $ expr = str_replace ( 'gto_' , 'gems__tokens.gto_' , ( string ) $ this -> util -> getTokenData ( ) -> getStatusExpression ( ) ) ; $ this -> sql_select -> columns ( [ 'token_status' => new \ Zend_Db_Expr ( $ expr ) ] , 'gems__tokens' ) ; return $ this ; }
Add reception codes and token status calculation

@param string|array $fields
@return \Gems_Tracker_Token_TokenSelect
Add reception codes and token status calculation