Settings > Defaults - the page ITFlow opens on, the calendar new * events go on, what a new client starts with, and - with accounting on - the * accounts and payment methods payments, expenses and transfers start with. * Each is what a form starts with; it can be changed there. Saved by * edit_default_settings (admin/post/settings_default.php). */ require_once "includes/inc_all_admin.php"; // The start page - the usual ones, and the one saved should it be another $start_pages = settingsStartPages(); if ((string) $config_start_page !== '' && !isset($start_pages[$config_start_page])) { $start_pages[$config_start_page] = $config_start_page; } $kept_start_page = (string) settingsValue('config_start_page', $config_start_page); if ($kept_start_page !== '' && !isset($start_pages[$kept_start_page])) { $start_pages[$kept_start_page] = $kept_start_page; } $calendars = [0 => '- None -']; $sql = mysqli_query($mysqli, "SELECT calendar_id, calendar_name FROM calendars ORDER BY calendar_name ASC"); while ($row = mysqli_fetch_assoc($sql)) { $calendars[intval($row['calendar_id'])] = $row['calendar_name']; } // Accounts in use, and any saved one since archived - so saving doesn't lose it $saved_accounts = array_map('intval', [$config_default_payment_account, $config_default_expense_account, $config_default_transfer_from_account, $config_default_transfer_to_account]); $accounts = [0 => '- None -']; $sql = mysqli_query($mysqli, "SELECT account_id, account_name, account_archived_at FROM accounts WHERE account_archived_at IS NULL OR account_id IN (" . implode(',', $saved_accounts) . ") ORDER BY account_name ASC"); while ($row = mysqli_fetch_assoc($sql)) { $accounts[intval($row['account_id'])] = $row['account_name'] . ($row['account_archived_at'] ? ' (archived)' : ''); } // Admin > Payment Methods - the ones for money in, or out - and a saved one, should it no longer be among them $methods = function ($saved, $way) { $choices = ['' => '- None -']; foreach (paymentMethods($way) as $method) { $choices[$method] = $method; } if ((string) $saved !== '' && !isset($choices[(string) $saved])) { $choices[(string) $saved] = $saved; } return $choices; }; echo settingsPageStart('default'); ?>
'fa-home', 'search' => true, 'required' => true, 'data' => ['tags' => 'true'], 'help' => 'Or type another page, as it is after /agent/ in its address - tickets.php?status=Open.']) ?> 'fa-calendar']) ?>
'fa-calendar-check', 'help' => 'When an invoice is due.']) ?>
'fa-clock', 'inputmode' => 'decimal', 'placeholder' => '0.00', 'suffix' => escapeHtml($session_company_currency) . ' an hour', 'help' => 'And what time bills at for a client with none of its own.']) ?>
'fa-piggy-bank', 'search' => true]) ?>
'fa-credit-card', 'search' => true]) ?>
'fa-shopping-cart', 'search' => true]) ?>
'fa-credit-card', 'search' => true]) ?>
'fa-sign-out-alt', 'search' => true]) ?>
'fa-sign-in-alt', 'search' => true]) ?>
Accounts are in Accounts, payment methods in Payment methods.