public function isReleased() { return $this->getAttribute('state') === $this::STATE_INVENTORY_RELEASED ? true : false; }