Defaults, Taxes, Invoices, Quotes and Payment Providers. */ defined('FROM_GETTING_STARTED') || die("Direct file access is not allowed"); $gs_billing = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT config_default_hourly_rate, config_default_net_terms, config_invoice_prefix, config_invoice_next_number, config_quote_prefix, config_quote_next_number FROM settings WHERE company_id = 1")) ?: []; $gs_rate = floatval($gs_billing['config_default_hourly_rate'] ?? 0); $gs_tax = taxRow(taxSettings()['default_id']); $gs_stripe = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT payment_provider_id, payment_provider_active, payment_provider_private_key FROM payment_providers WHERE payment_provider_name = 'Stripe' LIMIT 1")); $gs_accounts = []; $gs_sql = mysqli_query($mysqli, "SELECT account_id, account_name FROM accounts WHERE account_archived_at IS NULL ORDER BY account_name ASC"); while ($gs_row = mysqli_fetch_assoc($gs_sql)) { $gs_accounts[intval($gs_row['account_id'])] = $gs_row['account_name']; } $gs_stripe_on = settingsChecked('stripe_on', false); ?>