/** * Check if product amount is less than its low limit * * @return boolean */ public function isLowLimitReached() { if ($this->getProduct() && $this->getProduct()->hasManualPinCodes()) { $result = $this->getEnabled() && $this->getLowLimitEnabled() && $this->getProduct()->getRemainingPinCodesCount() <= $this->getLowLimitAmount(); } else { $result = parent::isLowLimitReached(); } return $result; }
/** * {@inheritDoc} */ public function isLowLimitReached() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'isLowLimitReached', array()); return parent::isLowLimitReached(); }