Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function isLowLimitReached()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'isLowLimitReached', array());
     return parent::isLowLimitReached();
 }