BxPaymentFormInvoices.php 981 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Payment Payment
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxPaymentFormInvoices extends BxTemplFormView
  12. {
  13. protected $_sModule;
  14. protected $_oModule;
  15. function __construct($aInfo, $oTemplate = false)
  16. {
  17. parent::__construct($aInfo, $oTemplate);
  18. $this->_sModule = 'bx_payment';
  19. $this->_oModule = BxDolModule::getInstance($this->_sModule);
  20. if(isset($this->aInputs['status'])) {
  21. $aStatuses = array(BX_PAYMENT_INV_STATUS_UNPAID, BX_PAYMENT_INV_STATUS_PAID, BX_PAYMENT_INV_STATUS_OVERDUE);
  22. $this->aInputs['status']['values'] = array();
  23. foreach($aStatuses as $sStatus)
  24. $this->aInputs['status']['values'][] = array('key' => $sStatus, 'value' => _t('_bx_payment_txt_status_' . $sStatus));
  25. }
  26. }
  27. }
  28. /** @} */