function is_budget() { global $currencies; $this->zero = $currencies->format(0); $this->coa_types = load_coa_types(); $this->inc_stmt_data = array(); }
$_GET['page']--; break; case 'go_next': $_GET['page']++; break; case 'go_last': $_GET['page'] = 99999; break; case 'search': case 'search_reset': case 'go_page': default: } /***************** prepare to display templates *************************/ // generate chart of account types $coa_types = load_coa_types(); // build the list header $heading_array = array('post_date' => TEXT_DATE, 'purchase_invoice_id' => TEXT_REFERENCE, 'total_amount' => TEXT_AMOUNT); $result = html_heading_bar($heading_array, $_GET['list_order'], array(TEXT_DESCRIPTION)); $list_header = $result['html_code']; $disp_order = $result['disp_order']; // build the list for the page selected $acct_period = $_GET['search_period'] ? $_GET['search_period'] : $_POST['search_period']; if (!$acct_period) { $acct_period = CURRENT_ACCOUNTING_PERIOD; } $period_filter = $acct_period == 'all' ? '' : ' and period = ' . $acct_period; $search_text = $_GET['search_text'] == TEXT_SEARCH ? '' : db_input(db_prepare_input($_GET['search_text'])); if (isset($search_text) && gen_not_null($search_text)) { $search_fields = array('purchase_invoice_id', 'total_amount'); // hook for inserting new search fields to the query criteria.
function balance_sheet() { $this->coa_types = load_coa_types(); }
function __construct() { $this->coa_types = load_coa_types(); }