Facebook
From Morose Hog, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 42
  1.     /**
  2.      * @param  Sap Order ID Or Magento Order ID
  3.      * @return Order Payment Status
  4.      */
  5.     public function getPaymentStatus($orderid){
  6.         $select = $this->_mageRead->select()->from($this->_order_table,'order_status')->where('sap_order_id=?',$orderid)->orWhere('mg_order_id=?',$orderid);
  7.         //echo '<pre>'.print_r($select,1).'</pre>';
  8.         return $this->_mageRead->fetchOne($select);
  9.     }
  10.  
  11.     /**
  12.      * @param  Sap Order ID or Magento Order Id
  13.      * @return Order Invoice Number
  14.      */
  15.     public function getInvoiceNumber($orderid){
  16.         $select = $this->_mageRead->select()->from($this->_order_table,'order_status')->where('sap_order_id=?',$orderid)->orWhere('mg_order_id=?',$orderid);
  17.         return $this->_mageRead->fetchOne($select);
  18.     }