Beispiel #1
0
 /**
  * Check - are the only options for Contracted shipment must be displayed (i.e. for "Create Shipment" request)
  *
  * @param \XLite\Module\XC\CanadaPost\Model\Order\Parcel $parcel Canada Post parcel object
  *
  * @return boolean
  */
 public function displayOnlyContractedOptions(\XLite\Module\XC\CanadaPost\Model\Order\Parcel $parcel)
 {
     return $parcel::QUOTE_TYPE_CONTRACTED == $parcel->getQuoteType() && $parcel::STATUS_PROPOSED != $parcel->getStatus() || $parcel::QUOTE_TYPE_CONTRACTED == \XLite\Core\Config::getInstance()->XC->CanadaPost->quote_type && $parcel::STATUS_PROPOSED == $parcel->getStatus();
 }
 /**
  * {@inheritDoc}
  */
 public function getQuoteType()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getQuoteType', array());
     return parent::getQuoteType();
 }