Пример #1
0
 /**
  * Return true if code is SalesTax surcharge code
  *
  * @param \XLite\Model\Order\Surcharge $surcharge Surcharge
  *
  * @return boolean
  */
 protected function isSalesTaxSurcharge($surcharge)
 {
     $salesTaxModifier = $surcharge->getOwner()->getModifier(\XLite\Model\Base\Surcharge::TYPE_TAX, \XLite\Module\CDev\SalesTax\Logic\Order\Modifier\Tax::MODIFIER_CODE);
     return $salesTaxModifier->isSurchargeOwner($surcharge);
 }
 /**
  * {@inheritDoc}
  */
 public function getOwner()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getOwner', array());
     return parent::getOwner();
 }