Invoiced.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Reports\Block\Adminhtml\Sales;
  7. /**
  8. * Adminhtml invoiced report page content block
  9. *
  10. * @api
  11. * @author Magento Core Team <core@magentocommerce.com>
  12. * @since 100.0.2
  13. */
  14. class Invoiced extends \Magento\Backend\Block\Widget\Grid\Container
  15. {
  16. /**
  17. * Template file
  18. *
  19. * @var string
  20. */
  21. protected $_template = 'Magento_Reports::report/grid/container.phtml';
  22. /**
  23. * {@inheritdoc}
  24. */
  25. protected function _construct()
  26. {
  27. $this->_blockGroup = 'Magento_Reports';
  28. $this->_controller = 'adminhtml_sales_invoiced';
  29. $this->_headerText = __('Total Invoiced vs. Paid Report');
  30. parent::_construct();
  31. $this->buttonList->remove('add');
  32. $this->addButton(
  33. 'filter_form_submit',
  34. ['label' => __('Show Report'), 'onclick' => 'filterFormSubmit()', 'class' => 'primary']
  35. );
  36. }
  37. /**
  38. * Get filter URL
  39. *
  40. * @return string
  41. */
  42. public function getFilterUrl()
  43. {
  44. $this->getRequest()->setParam('filter', null);
  45. return $this->getUrl('*/*/invoiced', ['_current' => true]);
  46. }
  47. }