- /**
- * Check invoice void action availability
- *
- * @return bool
- */
- public function canVoid()
- {
- if ($this->getState() == self::STATE_PAID) {
- if ($this->getCanVoidFlag() === null) {
- return (bool)$this->getOrder()->getPayment()->canVoid();
- }
- }
- return (bool)$this->getCanVoidFlag();
- }