Пример #1
0
 /**
  * getViewerTemplate
  *
  * @return string
  */
 protected function getViewerTemplate()
 {
     $result = parent::getViewerTemplate();
     if ('invoice' === \XLite\Core\Request::getInstance()->mode && $this->checkAccess()) {
         $result = 'common/print_invoice.tpl';
     }
     return $result;
 }