$_POST['tenant_name'] ?? '', 'timezone' => $_POST['timezone'] ?? 'Europe/Berlin', 'locale' => $_POST['locale'] ?? 'de-DE', 'currency_code' => $_POST['currency_code'] ?? 'EUR', 'mark_price_cents' => saas_parse_money_cents($_POST['mark_price'] ?? '') ?? 0, 'self_entry_enabled' => !empty($_POST['self_entry_enabled']) ? 1 : 0, 'paypal_enabled' => !empty($_POST['paypal_enabled']) ? 1 : 0, 'paypal_url_template' => $_POST['paypal_url_template'] ?? '', 'sheet_window_days' => $_POST['sheet_window_days'] ?? 100, 'negative_warning_cents' => -abs(saas_parse_money_cents($_POST['negative_warning'] ?? '') ?? 0), ]; } } else { $settings = saas_fetch_tenant_settings($pdo, (int)$user['tenant_id']); } $auditLog = app_fetch_audit_log($pdo, (int)$user['tenant_id'], 50); } include 'header.php'; include 'headerline.php'; include 'nav.php'; ?>