コード例 #1
0
 /**
  * Customer Notification Applicable check method
  *
  * @param  Mage_Sales_Model_Order_Status_History $history
  * @return boolean
  */
 public function isCustomerNotificationNotApplicable(Mage_Sales_Model_Order_Status_History $history)
 {
     return $history->isCustomerNotificationNotApplicable();
 }
コード例 #2
0
ファイル: Order.php プロジェクト: arslbbt/mangentovies
 public function addStatusHistory(Mage_Sales_Model_Order_Status_History $status)
 {
     $status->setOrder($this)->setParentId($this->getId())->setStoreId($this->getStoreId());
     $this->setStatus($status->getStatus());
     if (!$status->getId()) {
         $this->getStatusHistoryCollection()->addItem($status);
     }
     return $this;
 }
コード例 #3
0
ファイル: Order.php プロジェクト: blazeriaz/youguess
 /**
  * Set the order status history object and the order object to each other
  * Adds the object to the status history collection, which is automatically saved when the order is saved.
  * See the entity_id attribute backend model.
  * Or the history record can be saved standalone after this.
  *
  * @param Mage_Sales_Model_Order_Status_History $status
  * @return Mage_Sales_Model_Order
  */
 public function addStatusHistory(Mage_Sales_Model_Order_Status_History $history)
 {
     $history->setOrder($this);
     $this->setStatus($history->getStatus());
     if (!$history->getId()) {
         $this->getStatusHistoryCollection()->addItem($history);
     }
     return $this;
 }
コード例 #4
0
ファイル: History.php プロジェクト: pcuervo/gadfy
 /**
  * Set order again if required
  *
  * @return Mage_Sales_Model_Order_Status_History
  */
 protected function _beforeSave()
 {
     parent::_beforeSave();
     if (!$this->getParentId() && $this->getOrder()) {
         $this->setParentId($this->getOrder()->getId());
     }
     return $this;
 }