![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/fooman/pdfcustomiser-implementation-m2/src/Block/Pdf/ |
<?php namespace Fooman\PdfCustomiser\Block\Pdf; /** * Create html for generating invoice pdf * * @author Kristof Ringleff * @copyright Copyright (c) 2009 Fooman Limited (http://www.fooman.co.nz) * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Invoice extends AbstractSalesDocument { const XML_PATH_TITLE = 'sales_pdf/invoice/invoicetitle'; const XML_PATH_ADDRESSES = 'sales_pdf/invoice/invoiceaddresses'; const XML_PATH_COLUMNS = 'sales_pdf/invoice/columns'; const XML_PATH_CUSTOMTEXT = 'sales_pdf/invoice/invoicecustom'; const XML_PATH_GROUPTEXT = 'sales_pdf/invoice/grouptext'; const XML_PATH_SORTBY = 'sales_pdf/invoice/sortby'; /** * @return \Magento\Sales\Api\Data\OrderInterface */ public function getOrder() { return $this->getInvoice()->getOrder(); } /** * @return \Magento\Sales\Api\Data\InvoiceInterface */ public function getSalesObject() { return $this->getInvoice(); } /** * get main heading for invoice title ie TAX INVOICE * * @return string * @access public */ public function getTitle() { return $this->_scopeConfig->getValue( self::XML_PATH_TITLE, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $this->getStoreId() ); } /** * @return bool */ public function showOrderIncrementId() { return $this->_scopeConfig->getValue( \Magento\Sales\Model\Order\Pdf\AbstractPdf::XML_PATH_SALES_PDF_INVOICE_PUT_ORDER_ID, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $this->getStoreId() ); } /** * @return mixed */ public function getAddressesToDisplay() { return $this->_scopeConfig->getValue( self::XML_PATH_ADDRESSES, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $this->getStoreId() ); } /** * @return mixed */ public function getColumnConfig() { return $this->_scopeConfig->getValue( self::XML_PATH_COLUMNS, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $this->getStoreId() ); } /** * @return mixed */ public function getCustomText() { return $this->_scopeConfig->getValue( self::XML_PATH_CUSTOMTEXT, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $this->getStoreId() ); } protected function getSortColumnsBy() { return $this->_scopeConfig->getValue( self::XML_PATH_SORTBY, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $this->getStoreId() ); } }