private function getRegisteredQuoteByUniqueKey($custId, $stockId)
    {
        $result = null;
        $byCustId = EWrhsQuote::A_CUST_REF . '=' . (int)$custId;
        $byStockId = EWrhsQuote::A_STOCK_REF . '=' . (int)$stockId;
        $where = "($byCustId) AND ($byStockId)";
        $rs = $this->daoWrhsQuote->get($where);
        if (count($rs) == 1) {
            $result = reset($rs);
        }
        return $result;
    }
private function getRegisteredQuoteByUniqueKey($custId, $stockId)
    {
        $result = null;
        $byCustId = EWrhsQuote::A_CUST_REF . '=' . (int)$custId;
        $byStockId = EWrhsQuote::A_STOCK_REF . '=' . (int)$stockId;
        $where = "($byCustId) AND ($byStockId)";
        $rs = $this->daoWrhsQuote->get($where);
        if (count($rs) == 1) {
            $result = reset($rs);
        }
        return $result;
    }
private function getRegisteredQuoteByUniqueKey ( $ custId , $ stockId ) { $ result = null ; $ byCustId = EWrhsQuote :: A_CUST_REF . '=' . ( int ) $ custId ; $ byStockId = EWrhsQuote :: A_STOCK_REF . '=' . ( int ) $ stockId ; $ where = "($byCustId) AND ($byStockId)" ; $ rs = $ this -> daoWrhsQuote -> get ( $ where ) ; if ( count ( $ rs ) == 1 ) { $ result = reset ( $ rs ) ; } return $ result ; }
Get quote from registry by unique key.
@param int $custId
@param int $stockId
@return \Praxigento\Warehouse\Repo\Data\Quote|null
Get quote from registry by unique key .